Debugging
Debugging support is provided by the Python Debugger extension, which is automatically installed with the Python extension.
to set a breakpoint press F9
When you set a breakpoint, a red circle appears in the gutter.
to initialize the debugger, press F5.
VS Code uses JSON files for all of its various configurations; launch.json is the standard name for a file containing debugging configurations.
A debug toolbar appears along the top with the following commands from left to right: continue (F5), step over (F10), step into (F11), step out (Shift+F11), restart (Ctrl+Shift+F5), and stop (Shift+F5).
The Status Bar also changes color (orange in many themes) to indicate that you're in debug mode. The Python Debug Console also appears automatically in the lower right panel to show the commands being run, along with the program output.
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopNext