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.

Support Ctrl-C to interrupt console

See original GitHub issue

Long running tasks in the console cannot be interrupted from within the GUI console view (e.g. a while(1)). However, I can Ctrl-C within the terminal that I launched angr-management from and it will stop the task.

I think the right thing to do here is to respond to Ctrl-C (or whatever binding) as IPython would when launched from a terminal:

In [1]: while True:
   ...:     pass
   ...: 
^C---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
<ipython-input-1-414c137564b4> in <module>
      1 while True:
----> 2     pass
      3 

KeyboardInterrupt: 

In [2]: 

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rhelmotcommented, Jun 19, 2021
0reactions
zwimercommented, Dec 13, 2022

I could not figure out how to do this from a different thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CTRL+C and CTRL+BREAK Signals - Windows Console
The CTRL+C and CTRL+BREAK key combinations receive special handling by console processes.
Read more >
CTRL-C doesn't interrupt the running process #684 - GitHub
When I run any program that will take a bit longer to complete and CTRL-C interrupt it while it runs, the console will...
Read more >
How to emit Ctrl-C (keyboard interrupt) in Eclipse console?
To change keyboard bindings go to Window > Preferences > General > Keys and find "Terminate" with a red box by its name....
Read more >
Send signals (e.g. by CTRL-C) to an opened console : PY-4840
Send signals (e.g. by CTRL-C) to an opened console ... PY-20507 Interrupt long operation execution in debug console by pressing Ctrl+C.
Read more >
gnuplot / Feature Requests / #528 Need ability to interrupt plot ...
On Windows, these Ctrl-C interrupts can only be handled asynchronously for both console-mode and GUI variant. Internally, this works by ...
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