(isolateRef: VMIsolateRef, mode: VmExceptionMode)
| 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))); |
no test coverage detected