ChromeDebugger class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
onDetach EventStream<OnDetachEvent>
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.
no setter
onEvent EventStream<OnEventEvent>
Fired whenever debugging target issues instrumentation event.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach(Debuggee target, String requiredVersion) Future<void>
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.
detach(Debuggee target) Future<void>
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.
getTargets() Future<List<TargetInfo>>
Returns the list of available debug targets.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendCommand(Debuggee target, String method, Map? commandParams) Future<Map?>
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.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited