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

Method setExceptionPauseMode

src/debug/threads.ts:91–104  ·  view source on GitHub ↗
(mode: VmExceptionMode, persist = true)

Source from the content-addressed store, hash-verified

89 }
90
91 public async setExceptionPauseMode(mode: VmExceptionMode, persist = true) {
92 if (persist) {
93 this.exceptionMode = mode;
94 }
95 if (!this.debugSession.vmService)
96 return;
97
98 await Promise.all(this.threads.map(async (thread) => {
99 if (!thread.runnable || !this.debugSession.vmService)
100 return;
101
102 await this.setThreadExceptionPauseMode(thread.ref, mode);
103 }));
104 }
105
106 private async setLibrariesDebuggable(isolateRef: VMIsolateRef): Promise<void> {
107 if (this.debugSession.noDebug || !this.debugSession.vmService)

Callers 5

launchRequestFunction · 0.45
performReloadMethod · 0.45

Calls 1

Tested by

no test coverage detected