We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 012b6cb commit e6db48bCopy full SHA for e6db48b
objection/utils/agent.py
@@ -252,9 +252,12 @@ def attach(self):
252
self.session.on('detached', self.handlers.session_on_detached)
253
254
if self.config.debugger:
255
- self.session.enable_debugger()
+ 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())
260
- self.script = self.session.create_script(source=self._get_agent_source())
261
self.script.on('message', self.handlers.script_on_message)
262
self.script.load()
263
0 commit comments