I am running my script that has the try, except block which handles Keyboard interrupt. However, when I run my script from the Run window, I tried to stop the script using Keyboard interrupt(Ctrl+F2) from Pycharm and the script is terminated with 'Process finished with exit code -1'. The script will be doing some operations on how many threads the script created before Keyboard interrupt in the except block which is not printed.
I also have cygwin in my desktop when I try to do a Keyboard interrupt using Ctrl+c, the script prints the threads created.
Is there any equivalent for the Ctrl+c in Pycharm-Run window?