(mode: VmExceptionMode, persist = true)
| 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) |
no test coverage detected