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 Resolves once the attach operation succeeds or fails. The
promise resolves with no value. If the attach fails, the promise will be
rejected.
Detaches debugger from the given target.
target Debugging target from which you want to detach.
returns Resolves once the detach operation succeeds or fails. The
promise resolves with no value. If the detach fails, the promise will be
rejected.
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 promise will be rejected.