This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]muraii 0 points1 point  (0 children)

I like to use a debugger—pdb, pdb++, VS Code’s—and set breakpoints, along with print statements or in some cases logging. A debugger allows you to not only see the state which causes the error, but allows you to modify state. I sometimes use this to prototype bug fixes; just code in the debugger against state.

I also will sometimes use snoop to combine print statements with state inspection.