Python Debugging: Given an error, can I step backwards, fix the error, and continue the program?

Viewed 199

My current (PyCharm based) debugging workflow is to run a program in debug mode. When I run into an error, I fix it, and restart the program from the beginning.

Is it possible to save re-running the healthy part of the program by moving the program back by one step, fix the issue, and continue the program?

Is there a general way to do this, and one specific for PyCharm?

[edit:] this is related but not similar to Is there "Edit and Continue" in PyCharm? Reload code into running program like in Eclipse / PyDev? , as there the author anticipates halts the program before an error occurs. here, i consider an error state

0 Answers
Related