Skip to content

Commit e7efb40

Browse files
Do not exit from DebuggerStop unless resuming (#1784)
1 parent b1014f1 commit e7efb40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,10 @@ private void RunExecutionLoop(bool isForDebug = false)
702702
PopPowerShell(RunspaceChangeAction.Exit);
703703
}
704704

705-
return;
705+
if (ShouldExitExecutionLoop)
706+
{
707+
return;
708+
}
706709
}
707710
}
708711

0 commit comments

Comments
 (0)