Fired when browser terminates debugging session for the tab. This happens
when either the tab is being closed or Chrome DevTools is being invoked
for the attached tab.
Attaches debugger to the given target.
target Debugging target to which you want to attach.
requiredVersion Required debugging protocol version ("0.1"). One can
only attach to the debuggee with matching major version and greater or
equal minor version. List of the protocol versions can be obtained
here.
returns Called once the attach operation succeeds or fails. Callback
receives no arguments. If the attach fails, runtime.lastError will be
set to the error message.
Detaches debugger from the given target.
target Debugging target from which you want to detach.
returns Called once the detach operation succeeds or fails. Callback
receives no arguments. If the detach fails, runtime.lastError will be
set to the error message.
Sends given command to the debugging target.
target Debugging target to which you want to send the command.
method Method name. Should be one of the methods defined by the
remote debugging
protocol.
commandParams JSON object with request parameters. This object must
conform to the remote debugging params scheme for given method.
returns Response body. If an error occurs while posting the message,
the callback will be called with no arguments and runtime.lastError
will be set to the error message.