- install python extension. Click the
Extensions
button on the left of vscode and then searchpython
in extensions. - add launch.json configuration file to
.vscode/
. - switch to debug console by clicking
debug icon
on the left side of vscode. - set breakpoints by clicking on the left of line numbers.
- click
start to debug
button (or press F5) to start.