Search code examples
pythonpython-2.7pycharm

Keyboard interrupt in debug mode PyCharm


Is there any way to send a keyboard interrupt event in PyCharm IDE (3.1) while in the debugging mode?


Solution

  • As mentioned in this comment - Why doesn't this python keyboard interrupt work? (in pycharm):

    In recent versions of PyCharm, you can enable Emulate terminal in output console in your Run Configuration - this allows Ctrl + C in the Run console to send a keyboard interrupt.

    Tested with PyCharm 2018.3 (Community Edition):

    enter image description here

    Also this will break tqdm library:

    enter image description here