setIsolatePauseMode method
The setIsolatePauseMode
RPC is used to control if or when an isolate
will pause due to a change in execution state.
The shouldPauseOnExit
parameter specify whether the target isolate
should pause on exit.
mode | meaning |
---|---|
None | Do not pause isolate on thrown exceptions |
Unhandled | Pause isolate on unhandled exceptions |
All | Pause isolate on all thrown exceptions |
If isolateId
refers to an isolate which has exited, then the Collected
Sentinel is returned.
This method will throw a SentinelException in the case a Sentinel is returned.
Implementation
Future<Success> setIsolatePauseMode(String isolateId,
{/*ExceptionPauseMode*/ String? exceptionPauseMode,
bool? shouldPauseOnExit}) =>
_call('setIsolatePauseMode', {
'isolateId': isolateId,
if (exceptionPauseMode != null)
'exceptionPauseMode': exceptionPauseMode,
if (shouldPauseOnExit != null) 'shouldPauseOnExit': shouldPauseOnExit,
});