Hacker News new | ask | show | jobs
by AcerbicZero 1203 days ago
Honestly if most debuggers did what the author suggests in the first paragraph, I'd use them 10x more. Other than Pry for ruby I've not found many to debugger tools that let me drop into code, run parts of it, examine variables etc, without needing a 4 year degree in using the debugger itself.
2 comments

Pycharm/Intellij stuff does everything you mention in a fairly simple GUI that doesn't make you understand how to set conditional variables, but encourages you to realize you want to
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.

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.

Pdb comes to mind.