Debugging Configuration Guide¶
This guide helps you set up and run debugging sessions across common editors.
General Debugging Steps¶
Open your project folder in your editor.
Open the Debug panel:
VS Code: Use the Run & Debug tab.
Cursor: Search for “Debug: Select and Start Debugging”.
Windsurf: Use the debug view.
Choose a configuration:
Python: Launch MainPython: Launch Main (With Args)
Add breakpoints by clicking to the left of line numbers.
Start the debugger.
VS Code¶
VS Code uses the .vscode/launch.json file.
Launching¶
Open the Run & Debug panel and select one of the configurations:
"configurations": [
{
"name": "Python: Launch Main",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/py_launch_blueprint/projects.py"
},
{
"name": "Python: Launch Main (With Args)",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/py_launch_blueprint/projects.py",
"args": ["--workspace", "test", "--limit", "10"]
}
]
Set breakpoints and start debugging using the green ▶️ button or F5.
Cursor¶
Cursor uses the same .vscode/launch.json format.
Steps¶
Open the project.
Open the command palette and run
Debug: Select and Start Debugging.Pick a configuration.
Add breakpoints and start debugging.
Windsurf¶
Windsurf also supports .vscode/launch.json.
Steps¶
Open your project.
Go to the debug view.
Select a launch configuration.
Place breakpoints.
Start debugging.
For more help, see the documentation of each editor: