Skip to content

Instantly share code, notes, and snippets.

@josemarcosrf
Created January 14, 2020 20:13
Show Gist options
  • Save josemarcosrf/5f292a60854b180b5e7aa6db8d0697d0 to your computer and use it in GitHub Desktop.
Save josemarcosrf/5f292a60854b180b5e7aa6db8d0697d0 to your computer and use it in GitHub Desktop.
VSCode debug configuration examples
{
// 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