VS Code Debugging
A visual debugger, once launch.json is configured once per project.
Intermediate
ctrl+shift+d) needs to know how to actually
start your program — that's what .vscode/launch.json records, once per
project. VS Code offers to generate one automatically the first time you click
"Run and Debug" with a supported language open.
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
| Variant | Behavior |
|---|---|
| Conditional breakpoint | only pauses when an expression you supply evaluates true, e.g. i == 42 |
| Logpoint | doesn't pause at all — prints a message to the Debug Console instead, without editing the source to add a print statement |
len(results)).