| 1 |
{ |
| 2 |
"version": "0.2.0", |
| 3 |
"configurations": [ |
| 4 |
{ |
| 5 |
"name": "python: with Args", |
| 6 |
"type": "debugpy", |
| 7 |
"request": "launch", |
| 8 |
"program": "${file}", |
| 9 |
"args": "${input:arguments}", |
| 10 |
"cwd": "${input:debug_working_dir}", |
| 11 |
"justMyCode": true, |
| 12 |
"autoReload": { |
| 13 |
"enable": true |
| 14 |
} |
| 15 |
}, |
| 16 |
{ |
| 17 |
"name": "python: Within Libs", |
| 18 |
"type": "debugpy", |
| 19 |
"request": "launch", |
| 20 |
"program": "${file}", |
| 21 |
"args": "${input:last_arguments}", |
| 22 |
"cwd": "${input:debug_working_dir}", |
| 23 |
"justMyCode": false, |
| 24 |
"autoReload": { |
| 25 |
"enable": true |
| 26 |
} |
| 27 |
} |
| 28 |
], |
| 29 |
"inputs": [ |
| 30 |
{ |
| 31 |
// Usage: "args": "${input:arguments}", |
| 32 |
"id": "arguments", |
| 33 |
"type": "promptString", |
| 34 |
"description": "Which arguments to pass to the command?" |
| 35 |
}, |
| 36 |
{ |
| 37 |
// Usage: "cwd": "${input:debug_working_dir}" |
| 38 |
"id": "debug_working_dir", |
| 39 |
"type": "pickString", |
| 40 |
"description": "Debug the python program in which of these folders?", |
| 41 |
"options": [ |
| 42 |
"${fileDirname}", |
| 43 |
"${fileWorkspaceFolder}", |
| 44 |
"${fileWorkspaceFolder}/petl", |
| 45 |
"${fileWorkspaceFolder}/petl/tests", |
| 46 |
"${fileWorkspaceFolder}/examples", |
| 47 |
"${relativeFileDirname}", |
| 48 |
"${userHome}", |
| 49 |
"${cwd}", |
| 50 |
"${selectedText}", |
| 51 |
"" |
| 52 |
], |
| 53 |
"default": "${fileDirname}" |
| 54 |
}, |
| 55 |
] |
| 56 |
} |