question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using CTRL+C can cause break of debugging

See original GitHub issue

I’ve been working with VSCode for a while and I often catch myself on pressing F5, noticing an error and I press CTRL+C multiple times to quickly terminate. I noticed that sometimes VS Code will come back from this but in a broken state where pressing F5 doesn’t do anything anymore. This may or may not be related to me pressing it during Formatting on Save but maybe overall canceling running may impact how VSCode processes it. Of course maybe I shouldn’t cancel things like I do … but well… trigger happy it is.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rjmholtcommented, Oct 18, 2018

@PrzemyslawKlys if you take a normal PowerShell console session, can you cancel connecting to office365 in the middle of things? Or is it just faster?

<kbd>Ctrl</kbd>+<kbd>C</kbd> can only cancel when PowerShell gets the opportunity to. So if it’s a .NET call, or there’s some thread scheduling to wait on, it can’t work. I suspect it might be the latter case here.

0reactions
PrzemyslawKlyscommented, Oct 22, 2018

Also I see the issue with showing .json was solved in VSCode? Maybe this affects how things work?

Read more comments on GitHub >

github_iconTop Results From Across the Web

CTRL+C and CTRL+BREAK Signals - Windows Console
The debugger can handle the exception or continue with the exception unhandled. CTRL + BREAK is always treated as a signal, ...
Read more >
GDB: Ctrl+C doesn't interrupt process as it usually does but ...
I'm debugging a program (xmms2d as it happens) but in this program only, when I press Ctrl+C it gets treated as if GDB...
Read more >
Debugging the effect of CTRL-C on a C program - Sysprogs
I'm trying to debug the effect of SIGINT arriving in my C program (on Linux); my ... I can send SIGINT to the...
Read more >
Cannot send ctrl-c or ctrl-break to spawned debug console
I am using libuv to trap signals, the debugger spawns a separate console but it is not trapping the key signals. I expect...
Read more >
9039 – GDB is not trapping SIGINT. Ctrl+C terminates ...
When I'm debugging, while gdb is running I may want to break gdb to set breakpoints or so, then I Ctrl-C (send SIGINT)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found