attach method
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.
Implementation
Future<void> attach(
Debuggee target,
String requiredVersion,
) async {
await $js.chrome.debugger
.attach(
target.toJS,
requiredVersion,
)
.toDart;
}