Debate rages about whether JSON should have comments. The specification says it shouldn't but the author of JSON suggested that if you want to use JSON for configuration, then pipe it through jsmin before parsing. So that's what we do, using a tiny JSON minifier from https://github.com/getify/JSON.minify/tree/python Closes #135
65 lines
1.4 KiB
JSON
65 lines
1.4 KiB
JSON
{
|
|
"configurations": {
|
|
// This is a comment.
|
|
"run legacy vscode-python": {
|
|
"adapter": "vscode-python" /* coment goes here too */,
|
|
"configuration": {
|
|
"request": "launch",
|
|
"type": "python",
|
|
"cwd": "${workspaceRoot}",
|
|
"program": "${file}",
|
|
"stopOnEntry": true,
|
|
"console": "integratedTerminal"
|
|
},
|
|
"breakpoints": {
|
|
"exception": {
|
|
"raised": "N",
|
|
"uncaught": ""
|
|
}
|
|
}
|
|
},
|
|
"attach": {
|
|
"adapter": "debugpy",
|
|
"configuration": {
|
|
"request": "attach",
|
|
"type": "python",
|
|
"host": "localhost",
|
|
"port": "5678"
|
|
},
|
|
"breakpoints": {
|
|
"exception": {
|
|
"raised": "N",
|
|
"uncaught": ""
|
|
}
|
|
}
|
|
},
|
|
"run": {
|
|
"adapter": "debugpy",
|
|
"configuration": {
|
|
"request": "launch",
|
|
"type": "python",
|
|
"cwd": "${workspaceRoot}",
|
|
"program": "${file}",
|
|
"stopOnEntry": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
"breakpoints": {
|
|
"exception": {
|
|
"raised": "N",
|
|
"uncaught": ""
|
|
}
|
|
}
|
|
},
|
|
"run - exception question": {
|
|
"adapter": "debugpy",
|
|
"configuration": {
|
|
"request": "launch",
|
|
"type": "python",
|
|
"cwd": "${workspaceRoot}",
|
|
"program": "${file}",
|
|
"stopOnEntry": false,
|
|
"console": "integratedTerminal"
|
|
}
|
|
}
|
|
}
|
|
}
|