-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug configuration does not override workspace python interpreter #463
Comments
Thank you for the comprehensive issue! First, can you try specifying the absolute path instead of using the variable substitution when defining your python here |
Tested again with the absolute path for both "python" values in the launch.json, Unrelated, but while testing this I noticed the python debug console terminal output no longer contains the first line from the examples in my original post, starting instead with the second of the three lines. This remained the case even after I reverted the launch.json file back to using the workspaceFolder variable, so I'm assuming the difference from before is due to an unrelated update or logging quirk. |
Some additional / new information:
|
+1 Have a similar issue while trying to work in No matter how I try to specify {
"version": "0.2.0",
"configurations": [
{
"name": "Server: debug",
"type": "debugpy",
"request": "launch",
"module": "src.server",
"cwd": "${workspaceFolder}/backend",
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Server: create tests",
"type": "debugpy",
"request": "launch",
"module": "tests.update",
"cwd": "${workspaceFolder}/backend",
"console": "integratedTerminal"
},
{
"name": "VSCode extension: debug",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/frontend-vscode"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}",
"cwd": "${workspaceFolder}/frontend-vscode"
}
]
} |
Fairly straightforward issue. When performing "Start Debugging" or "Run Without Debugging", the debugger will use the current workspace interpreter instead of the interpreter specified in the launch.json configuration with the "python" key.
Steps to reproduce:
./projectA/projecta-abcd-py3.x/bin/python
.Expected result (terminal output):
Actual result (terminal output):
The text was updated successfully, but these errors were encountered: