Last active
March 27, 2022 18:23
-
-
Save gesquive/562e92fa9eac5e5c8e15824266f1ea4e to your computer and use it in GitHub Desktop.
vs code python debug launch examples file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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