pythondebuggingpycharm

How to switch on debug while running in PyCharm


I have a problem similar to this question (Switch between Run and Debug modes in Pycharm). I have a program running for some hours now and thought about taking a backup of some of the calculated values, but these commands are not present in the code. I am using PyCharm and if I could still activate debug mode that would be awesome, but other ways of saving these variables are also appreciated.


Solution

  • Consider using Attach to process feature: https://www.jetbrains.com/help/pycharm/attach-to-process.html