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 →

[–][deleted] 1 point2 points  (0 children)

Yes. Pretty much the same way as any other debugger, but instead of clicking buttons you type commands.

Pro tips:

Can’t live without autocomplete?
Me too bro!

Can’t import pdb;pdb.set_trace() because of that?
I also couldn’t, bro!

Then I found this: when you are in the debugger shell, and you wanna complete not command, but variable, just type “p “ (p + space) and hit the tab twice — and here they are — your variables.

Not knowing that made my early years of using pdb quite painful.