Search⌘ K
AI Features

Setting breakpoints

Explore how to use Python's pdb module to set breakpoints and pause execution at specific lines or functions. Learn to control program flow, inspect arguments, and debug your code step-by-step for better error diagnosis.

We'll cover the following...

A breakpoint is a line in the code where you want to pause execution. You can set a breakpoint by calling the break (or b) command followed by a space and the line number that you want to break on. You can also ...