From the course: Visual Studio Code for Python Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Breakpoints

Breakpoints

From the course: Visual Studio Code for Python Developers

Start my 1-month free trial

Breakpoints

- [Tutor] Stepping through your program's entire code base one line at a time can really quickly become tedious. It's much easier to specify points in your code where you want the debugger to stop when they're reached, and this is what breakpoints are for. So here in chapter three, lesson three, let's go ahead and open up the code for geometry solver, and I'm going to show you how to use breakpoints to indicate the line of code where you want execution to pause, because the Python extension for Visual Studio Code provides this ability for Python. So to set a new breakpoint, I can either click on a line of code, and then in the Debug menu, I can choose toggle breakpoint or new breakpoint. Or I can click in the gutter between the files and the line numbers, these little red dots that are showing up. If I click, then you'll see that a red dot shows up. And if I switch the debug view, you can see that down here in the breakpoint section as I add breakpoints, they're listed here in the…

Contents