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 Resolves once the attach operation succeeds or fails. The promise resolves with no value. If the attach fails, the promise will be rejected.
detach(Debuggee target) → Future<void>
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.
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(DebuggerSession 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 promise will be rejected.
toString() → String
A string representation of this object.
inherited

Operators

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