diff --git a/packages/debug/src/browser/debug-session.tsx b/packages/debug/src/browser/debug-session.tsx index 8f104f139399b..1c0bcde67e766 100644 --- a/packages/debug/src/browser/debug-session.tsx +++ b/packages/debug/src/browser/debug-session.tsx @@ -834,7 +834,7 @@ export class DebugSession implements CompositeTreeElement { } let debugSession: DebugSession | undefined = this; do { - debugSession = this.parentSession; + debugSession = debugSession.parentSession; } while (debugSession?.parentSession && debugSession.configuration.consoleMode === DebugConsoleMode.MergeWithParent); return debugSession; }