зеркало из https://github.com/microsoft/debugpy.git
75 строки
2.4 KiB
JSON
75 строки
2.4 KiB
JSON
{
|
|
// 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": "Launch: program",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"console": "integratedTerminal",
|
|
"program": "${file}",
|
|
"logToFile": true,
|
|
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
|
|
},
|
|
{
|
|
"name": "Launch: module",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"console": "integratedTerminal",
|
|
"module": "${fileBasenameNoExtension}",
|
|
"cwd": "${fileDirname}",
|
|
"logToFile": true,
|
|
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
|
|
},
|
|
{
|
|
"name": "Launch: code",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"console": "integratedTerminal",
|
|
"code": ["import runpy", "runpy.run_path(r'${file}')"],
|
|
"logToFile": true,
|
|
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
|
|
},
|
|
{
|
|
"name": "Attach: connect",
|
|
"type": "python",
|
|
"request": "attach",
|
|
"connect": {
|
|
"port": 5678,
|
|
"host": "127.0.0.1"
|
|
},
|
|
"logToFile": true,
|
|
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
|
|
},
|
|
{
|
|
"name": "Attach: listen",
|
|
"type": "python",
|
|
"request": "attach",
|
|
"listen": {
|
|
"port": 5678,
|
|
"host": "127.0.0.1"
|
|
},
|
|
"logToFile": true,
|
|
//"restart": true,
|
|
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
|
|
},
|
|
{
|
|
"name": "Attach: PID",
|
|
"type": "python",
|
|
"request": "attach",
|
|
"processId": "${command:pickProcess}",
|
|
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
|
|
},
|
|
{
|
|
"name": "Debug Tests",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"console": "integratedTerminal",
|
|
"purpose": ["debug-test"],
|
|
"debugAdapterPath": "${workspaceFolder}/src/debugpy/adapter"
|
|
}
|
|
]
|
|
}
|