Skip to content

Commit

Permalink
Fix browser freezing when executing child debug
Browse files Browse the repository at this point in the history
Fixes an infinite loop that was triggered when attempting
to resolve a parent console.

Signed-off-by: Alvaro Sanchez-Leon <alvaro.sanchez-leon@ericsson.com>
  • Loading branch information
alvsan09 committed Jul 6, 2022
1 parent 97ce5f8 commit c82d9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/debug/src/browser/debug-session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c82d9c5

Please sign in to comment.