Skip to content

Instantly share code, notes, and snippets.

@gesquive
Last active March 27, 2022 18:23
Show Gist options
  • Save gesquive/562e92fa9eac5e5c8e15824266f1ea4e to your computer and use it in GitHub Desktop.
Save gesquive/562e92fa9eac5e5c8e15824266f1ea4e to your computer and use it in GitHub Desktop.
vs code python debug launch examples file
"configurations": [
{
"name": "Python: Server",
"type": "python",
"request": "launch",
"envFile": "${workspaceFolder}/.env",
"program": "${workspaceFolder}/server.py"
},
{
"name": "Python: run file",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/run.py",
"args": [
"arg1",
"arg2"
],
},
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}"
},
{
"name": "Python: All debug Options",
"type": "python",
"request": "launch",
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"module": "module.name",
"env": {
"VAR1": "1",
"VAR2": "2"
},
"envFile": "${workspaceFolder}/.env",
"args": [
"arg1",
"arg2"
],
"debugOptions": [
"RedirectOutput"
]
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment