MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / setThreadExceptionPauseMode

Method setThreadExceptionPauseMode

src/debug/threads.ts:49–58  ·  view source on GitHub ↗
(isolateRef: VMIsolateRef, mode: VmExceptionMode)

Source from the content-addressed store, hash-verified

47 }
48
49 private async setThreadExceptionPauseMode(isolateRef: VMIsolateRef, mode: VmExceptionMode): Promise<void> {
50 if (!this.debugSession?.vmService)
51 return;
52
53 if (this.debugSession.vmServiceCapabilities.supportsSetIsolatePauseMode) {
54 await this.debugSession.vmService.setIsolatePauseMode(isolateRef.id, { exceptionPauseMode: mode });
55 } else {
56 await this.debugSession.vmService.setExceptionPauseMode(isolateRef.id, mode);
57 }
58 }
59
60 public async setLibrariesDuggableForAllIsolates() {
61 await Promise.all(this.threads.map((thread) => this.setLibrariesDebuggable(thread.ref)));

Callers 2

registerThreadMethod · 0.95
setExceptionPauseModeMethod · 0.95

Calls 2

setIsolatePauseModeMethod · 0.80
setExceptionPauseModeMethod · 0.45

Tested by

no test coverage detected