Created
June 14, 2017 21:31
-
-
Save sahas-/8f84e3859f93e9142ef30c05feade73b to your computer and use it in GitHub Desktop.
Python debug in vscode
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python", | |
"type": "python", | |
"request": "launch", | |
"stopOnEntry": true, | |
"pythonPath": "/usr/local/bin/python3", | |
"program": "${file}", | |
"cwd": "${workspaceRoot}", | |
"env": {}, | |
"envFile": "${workspaceRoot}/.env", | |
"debugOptions": [ | |
"WaitOnAbnormalExit", | |
"WaitOnNormalExit", | |
"RedirectOutput" | |
] | |
}, | |
{ | |
"name": "Python Module", | |
"type": "python", | |
"request": "launch", | |
"stopOnEntry": true, | |
"pythonPath": "/usr/local/bin/python3", | |
"module": "module.name", | |
"cwd": "${workspaceRoot}", | |
"env": {}, | |
"envFile": "${workspaceRoot}/.env", | |
"debugOptions": [ | |
"WaitOnAbnormalExit", | |
"WaitOnNormalExit", | |
"RedirectOutput" | |
] | |
}, | |
{ | |
"name": "Integrated Terminal/Console", | |
"type": "python", | |
"request": "launch", | |
"stopOnEntry": true, | |
"pythonPath": "/usr/local/bin/python3", | |
"program": "${file}", | |
"cwd": "", | |
"console": "integratedTerminal", | |
"env": {}, | |
"envFile": "${workspaceRoot}/.env", | |
"debugOptions": [ | |
"WaitOnAbnormalExit", | |
"WaitOnNormalExit" | |
] | |
}, | |
{ | |
"name": "External Terminal/Console", | |
"type": "python", | |
"request": "launch", | |
"stopOnEntry": true, | |
"pythonPath": "/usr/local/bin/python3", | |
"program": "${file}", | |
"cwd": "", | |
"console": "externalTerminal", | |
"env": {}, | |
"envFile": "${workspaceRoot}/.env", | |
"debugOptions": [ | |
"WaitOnAbnormalExit", | |
"WaitOnNormalExit" | |
] | |
}, | |
{ | |
"name": "Attach (Remote Debug)", | |
"type": "python", | |
"request": "attach", | |
"localRoot": "${workspaceRoot}", | |
"remoteRoot": "${workspaceRoot}", | |
"port": 3000, | |
"secret": "my_secret", | |
"host": "localhost" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment