- Set a breakpoint by typing b or break, followed by the line number at which to set the breakpoint.
- Clear a breakpoint by typing cl or clear, and the number (not the line number) of the breakpoint.
- Set a conditional breakpoint by typing b (or break), following by the line number, followed by a comma, and then the logical condition.
- As already mentioned, typing h (or help) at the Pdb prompt lists all of the commands, and typing h followed by a specific command gets you help for that command.
Former college mathematics professor for 19 years; taught a variety of programming languages. Former technical writer for 15 years at a large software firm headquartered in Redmond, WA. Current associate faculty at a nearby community college, teaching classes in C++ and computer architecture/assembly language.
I enjoy traipsing around off-trail in Olympic National Park, as well as riding and tinkering with my four motorcycles.