Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,12 @@ private void OnCancelKeyPress(object sender, ConsoleCancelEventArgs args)
_cancellationContext.CancelCurrentTask();

// If the current task was running under the debugger, we need to synchronize the
// cancelation with our debug context (and likely the debug server).
StopDebugContext();
// cancelation with our debug context (and likely the debug server). Note that if we're
// currently stopped in a breakpoint, that means the task is _not_ under the debugger.
if (!CurrentRunspace.Runspace.Debugger.InBreakpoint)
{
StopDebugContext();
}
}

private ConsoleKeyInfo ReadKey(bool intercept)
Expand Down