Hacker News new | ask | show | jobs
by alexdig 1201 days ago
do you know if it's possible to step back in pycharm/intellij? the article mentions some debuggers having this ability, but i never saw an option in pycharm.

learning how to undo my last step would save so much time. right now, i have to anticipate a risky step and run that line in the debugger console.

2 comments

Unfortunately I dont think there's any time traveling debugger - you can pretty easily go up and down the stack to see where the caller did x and write something in the console to do y, or you can set conditionals that would always trip when you are about to do something risky, but not go back in time.
This https://plugins.jetbrains.com/plugin/14767-time-travel-debug... gives time travel debugging for IntelliJ. (Disclaimer, I work for Undo.)

I don't think there is a solution for PyCharm.