VS Code version
1.62.3
Extension version
2021.11.1422169775
OS type
Windows
OS version
Windows_NT x64 10.0.19043
Python distribution
Anaconda
Python version
3.6.4
Language server
Pylance
Expected behaviour
This is an issue that initially posted to vscode but was asked to post in this forum (vscode - python).
I have been trying to change the justMycode from default "true" to "false", to debug into pytorch package but with no luck.
I have added the following code in the configurations( the second parenthesis is the newly added, the 1st one was by default). It did not work on 1.59 nor the most updated 1.62. What have gotten worse was the "python" after "type" in the configuration was not recognized anymore after upgrading from 1.59 to 1.62. The error was about "Configured debug type 'python' is installed but not supported in this environment."
PS: the code I used in the configuration was followed in this link https://code.visualstudio.com/docs/python/testing#_debug-tests
Please let me know if you could point me to the right direction and resolve the issue. Thank you in advance.
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
},
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"purpose": ["debug-test"],
"console": "integratedTerminal",
"justMyCode": false
}
]
}
Actual behaviour
When debugging the code, I should be able to step into the Pytorch library if I set "JustMyCode" to false. Please refer to expected behavior for more details
Steps to reproduce
Please see expected behavior for more detail.
Basically I was just changing the lauch.json file as below, which should turn off the "JustMyCode" function but it did not.
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
},
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"purpose": ["debug-test"],
"console": "integratedTerminal",
"justMyCode": false
}
]
}
Logs
No response
Code of Conduct
VS Code version
1.62.3
Extension version
2021.11.1422169775
OS type
Windows
OS version
Windows_NT x64 10.0.19043
Python distribution
Anaconda
Python version
3.6.4
Language server
Pylance
Expected behaviour
This is an issue that initially posted to vscode but was asked to post in this forum (vscode - python).
I have been trying to change the justMycode from default "true" to "false", to debug into pytorch package but with no luck.
I have added the following code in the configurations( the second parenthesis is the newly added, the 1st one was by default). It did not work on 1.59 nor the most updated 1.62. What have gotten worse was the "python" after "type" in the configuration was not recognized anymore after upgrading from 1.59 to 1.62. The error was about "Configured debug type 'python' is installed but not supported in this environment."
PS: the code I used in the configuration was followed in this link https://code.visualstudio.com/docs/python/testing#_debug-tests
Please let me know if you could point me to the right direction and resolve the issue. Thank you in advance.
Actual behaviour
When debugging the code, I should be able to step into the Pytorch library if I set "JustMyCode" to false. Please refer to expected behavior for more details
Steps to reproduce
Please see expected behavior for more detail.
Basically I was just changing the lauch.json file as below, which should turn off the "JustMyCode" function but it did not.
Logs
No response
Code of Conduct