Created
January 14, 2020 20:13
-
-
Save josemarcosrf/5f292a60854b180b5e7aa6db8d0697d0 to your computer and use it in GitHub Desktop.
VSCode debug configuration examples
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: Current File", | |
"type": "python", | |
"request": "launch", | |
"program": "${file}", | |
"console": "integratedTerminal" | |
}, | |
{ | |
"name": "Python: Module Integrated Terminal", | |
"type": "python", | |
"request": "launch", | |
"cwd": "${input:rootDir}", | |
"module": "${input:module}", | |
"console": "integratedTerminal", | |
"args": [] | |
}, | |
{ | |
"name": "Python: Module External Terminal", | |
"type": "python", | |
"request": "launch", | |
"stopOnEntry": true, | |
"pythonPath": "${input:pythonPath}", | |
// "program": "${file}", | |
"cwd": "${input:rootDir}", | |
"module": "${input:module}", | |
"console": "externalTerminal", | |
"env": {} "RedirectOutput" | |
// ] | |
} | |
], | |
"inputs": [ | |
{ | |
"id": "rootDir", | |
"type": "promptString", | |
"default": "${workspaceFolder}", | |
"description": "The root directory from where to launch the program" | |
}, | |
{ | |
"id": "module", | |
"type": "promptString", | |
"description": "module to launch" | |
}, | |
{ | |
"id": "pythonPath", | |
"type": "promptString", | |
"description": "python executable path" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment