Skip to content

Commit

Permalink
(fix) update debugger support.
Browse files Browse the repository at this point in the history
this is an implementation from #579. thanks @CDuPlooy!
  • Loading branch information
leonjza committed May 24, 2024
1 parent 012b6cb commit e6db48b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions objection/utils/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,12 @@ def attach(self):
self.session.on('detached', self.handlers.session_on_detached)

if self.config.debugger:
self.session.enable_debugger()
click.secho('debugger enabled and runtime set to v8. visit chrome://inspect', bold=True)
self.script = self.session.create_script(source=self._get_agent_source(), runtime='v8')
self.script.enable_debugger()
else:
self.script = self.session.create_script(source=self._get_agent_source())

self.script = self.session.create_script(source=self._get_agent_source())
self.script.on('message', self.handlers.script_on_message)
self.script.load()

Expand Down

0 comments on commit e6db48b

Please sign in to comment.