mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Update launch json
This commit is contained in:
parent
9ad731d3be
commit
3e429288c8
1 changed files with 13 additions and 15 deletions
28
.vscode/launch.json
vendored
28
.vscode/launch.json
vendored
|
|
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue