My python code is taking longer than expected to run. I am using spyder 5.2 and python 3.9. Is there a way to pause execution arbitrarily to check the line that is currently running and examine the variable explorer? I would like the variable explorer to show local variables within a function if a function is running at the time.
After checking the code, I would like to restart the code from the point it had stopped.
Notice that I am not referring to setting breakpoints before the code is run. Rather, what I want is to be able to pause the code at will, during execution.