justMycode = false does not work #18085
Replies: 3 comments
-
I have filed an issue in this link |
Beta Was this translation helpful? Give feedback.
-
I think we will need more details on this. I am able to debug (step into) Pytorch: I have moved the issue you filed to microsoft/debugpy#795 In the above configuration, you have set
Logging instructions: https://github.com/microsoft/debugpy/wiki/Enable-debugger-logs#logging-using-debug-configuration |
Beta Was this translation helpful? Give feedback.
-
Hi Karthik,
Thank you very much for your kind response. I have made adjustment based on
your direction and it worked on my python environment which was used to
debug xx.py file. In addition to that, I was trying to use the same
configuration to debug a cell in Jupyter Notebook, where I encountered the
same error as before (set JustMyCode = False,cannot step into XGboost
Library). I have summarized my findings in the link below. Please let me
know if there is additional configuration I need to do to make it right.
microsoft/vscode-jupyter#8413
Thank you in advance,
Bin
…On Mon, Nov 29, 2021 at 3:58 PM Karthik Nadig ***@***.***> wrote:
I think we will need more details on this. I am able to debug (step into)
Pytorch:
[image: image]
<https://user-images.githubusercontent.com/3840081/143960665-08b84050-0cc8-41f8-9343-a85689bb01c0.png>
I have moved the issue you filed to microsoft/debugpy#795
<microsoft/debugpy#795>
In the above configuration, you have set justMyCode: false only for the
tests. That means if you want to debug using the F5(shortcut) or the
debug menu it won't work. Since both are named "current file" it can get
confusing which one is picked when you use the F5 shortcut. Can you change
them to like this and see if this works? If not, then we might need logs
(see below for logging instructions).
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Python: Debug Test",
"type": "python",
"request": "launch",
"program": "${file}",
"purpose": ["debug-test"],
"console": "integratedTerminal",
"justMyCode": false
}
]
}
Logging instructions:
https://github.com/microsoft/debugpy/wiki/Enable-debugger-logs#logging-using-debug-configuration
Please collect the logs and upload them under this issue
microsoft/debugpy#795 <microsoft/debugpy#795>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#18085 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AESIPITQXUBUO3WC4LPOBY3UOQHTXANCNFSM5I4WHVDQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Issue Type: Bug
Hi Vscode-python team,
I was directed by Vscode team to here on an issue. Please see below for more details, Thank you in advance.
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 configrations( the second parathesis 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.
VS Code version: Code 1.62.3 (ccbaa2d, 2021-11-17T08:11:14.551Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
Beta Was this translation helpful? Give feedback.
All reactions