Update launch json

This commit is contained in:
Karthik Nadig 2021-10-13 11:28:43 -07:00
parent 9ad731d3be
commit 3e429288c8

28
.vscode/launch.json vendored
View file

@ -11,7 +11,7 @@
"console": "integratedTerminal", "console": "integratedTerminal",
"program": "${file}", "program": "${file}",
"logToFile": true, "logToFile": true,
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter", "debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
}, },
{ {
"name": "Launch: module", "name": "Launch: module",
@ -21,19 +21,16 @@
"module": "${fileBasenameNoExtension}", "module": "${fileBasenameNoExtension}",
"cwd": "${fileDirname}", "cwd": "${fileDirname}",
"logToFile": true, "logToFile": true,
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter", "debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
}, },
{ {
"name": "Launch: code", "name": "Launch: code",
"type": "python", "type": "python",
"request": "launch", "request": "launch",
"console": "integratedTerminal", "console": "integratedTerminal",
"code": [ "code": ["import runpy", "runpy.run_path(r'${file}')"],
"import runpy",
"runpy.run_path(r'${file}')",
],
"logToFile": true, "logToFile": true,
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter", "debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
}, },
{ {
"name": "Attach: connect", "name": "Attach: connect",
@ -41,10 +38,10 @@
"request": "attach", "request": "attach",
"connect": { "connect": {
"port": 5678, "port": 5678,
"host": "127.0.0.1", "host": "127.0.0.1"
}, },
"logToFile": true, "logToFile": true,
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter", "debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
}, },
{ {
"name": "Attach: listen", "name": "Attach: listen",
@ -52,24 +49,25 @@
"request": "attach", "request": "attach",
"listen": { "listen": {
"port": 5678, "port": 5678,
"host": "127.0.0.1", "host": "127.0.0.1"
}, },
"logToFile": true, "logToFile": true,
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter", "debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
}, },
{ {
"name": "Attach: PID", "name": "Attach: PID",
"type": "python", "type": "python",
"request": "attach", "request": "attach",
"processId": "${command:pickProcess}", "processId": "${command:pickProcess}",
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter", "debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
}, },
{ {
"name": "Debug Tests", "name": "Debug Tests",
"type": "python", "type": "python",
"request": "test", "request": "launch",
"console": "integratedTerminal", "console": "integratedTerminal",
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter", "purpose": ["debug-test"],
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
} }
] ]
} }