From ba9a4314e1e25cbd135a6f0d5ea855e8f437d104 Mon Sep 17 00:00:00 2001 From: Michel Kaporin Date: Tue, 13 Jun 2017 09:33:16 +0200 Subject: [PATCH] Resolves #27903 --- .../debug/electron-browser/debugEditorContribution.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/parts/debug/electron-browser/debugEditorContribution.ts b/src/vs/workbench/parts/debug/electron-browser/debugEditorContribution.ts index 95e12911dcf..72c5ac93ee9 100644 --- a/src/vs/workbench/parts/debug/electron-browser/debugEditorContribution.ts +++ b/src/vs/workbench/parts/debug/electron-browser/debugEditorContribution.ts @@ -356,8 +356,13 @@ export class DebugEditorContribution implements IDebugEditorContribution { // Toggles exception widget based on the state of the current editor model and debug stack frame const model = this.editor.getModel(); const focusedSf = this.debugService.getViewModel().focusedStackFrame; - const callStack = focusedSf ? focusedSf.thread.getCallStack() : null; - if (!model || !focusedSf || !callStack || callStack.length === 0) { + if (!model || !focusedSf || !focusedSf.source || !focusedSf.source.available) { + this.closeExceptionWidget(); + return; + } + + const callStack = focusedSf.thread.getCallStack(); + if (!callStack || callStack.length === 0) { this.closeExceptionWidget(); return; } -- GitLab