How do you send KeyboardInterrupt in debug? Marcel Wilson Created June 01, 2011 15:22 Is there a way to send a CTRL+C (KeyboardInterrupt) command to a running script in either Debug or Run modes?
Hello Marcel,
No, right now this is not possible for a general script.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
I am noticing that the MacOSX version of PyCharm seems to send the KeyBoard interrupt when you press the stop button:
Init called.
enter called
Exit called
Traceback (most recent call last):
time.sleep(100)
KeyboardInterrupt
Windows however does something different, causing the process to halt instantly.
Init called.
enter called
Process finished with exit code 1
I am on the hunt to find how to send the keyboard interrupt on Windows...