I've been looking for a "final" python editor for ages and Pycharm seems to be the closest I can get to my ideal editor. However, before buying a full license, I want to make sure I have all the functionalities I need.
One of the most important functions for me is to be able to interrupt a script and interact with its results in the console. I see that in Pycharm I can easily keep the console open after the execution of the program, but this won't work if I interrupt the script manually (ctrl+f2). I use python for scientific research and it is very common for me to run long analyses that take days or even weeks. If I get unexpected results, I need to be able to interrupt the script and investigate every part of the stack, plotting parameters and internal variables. I can do this in ipython by simply pressing crtrl+c followed by %debug, but I couldn't find something similar in Pycharm.
Is there any way to interrupt the script and keep the console active afterwards?