When developping my project in specific environments, I want to use a specific executable of debugpy, like I can for formatting (e.g. black) or linting (e.g. flake8).
Or maybe just be able to let python pickup the available debugpy.
Current behavior: VS Code Python only use its own .vscode-server-insiders/extensions/ms-python.python-2020.10.332292344/pythonFiles/lib/python/debugpy/launcher
For now I have to use this setup to debug my projects:
{
"version": "0.2.0",
"configurations": [
{
"name": "Start debug (Nix)",
"request": "launch",
"type": "node-terminal",
"command": "nix-shell --run 'python -m debugpy --listen localhost:5678 --wait-for-client -m myproject'",
"env": {}
},
{
"name": "Connect debug (Nix)",
"type": "python",
"request": "attach",
"port": 5678,
}
]
}
When developping my project in specific environments, I want to use a specific executable of
debugpy, like I can for formatting (e.g.black) or linting (e.g.flake8).Or maybe just be able to let python pickup the available debugpy.
Current behavior: VS Code Python only use its own
.vscode-server-insiders/extensions/ms-python.python-2020.10.332292344/pythonFiles/lib/python/debugpy/launcherFor now I have to use this setup to debug my projects:
{ "version": "0.2.0", "configurations": [ { "name": "Start debug (Nix)", "request": "launch", "type": "node-terminal", "command": "nix-shell --run 'python -m debugpy --listen localhost:5678 --wait-for-client -m myproject'", "env": {} }, { "name": "Connect debug (Nix)", "type": "python", "request": "attach", "port": 5678, } ] }