Skip to content

Commit e6db48b

Browse files
committed
(fix) update debugger support.
this is an implementation from #579. thanks @CDuPlooy!
1 parent 012b6cb commit e6db48b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

objection/utils/agent.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,12 @@ def attach(self):
252252
self.session.on('detached', self.handlers.session_on_detached)
253253

254254
if self.config.debugger:
255-
self.session.enable_debugger()
255+
click.secho('debugger enabled and runtime set to v8. visit chrome://inspect', bold=True)
256+
self.script = self.session.create_script(source=self._get_agent_source(), runtime='v8')
257+
self.script.enable_debugger()
258+
else:
259+
self.script = self.session.create_script(source=self._get_agent_source())
256260

257-
self.script = self.session.create_script(source=self._get_agent_source())
258261
self.script.on('message', self.handlers.script_on_message)
259262
self.script.load()
260263

0 commit comments

Comments
 (0)