-
Notifications
You must be signed in to change notification settings - Fork 147
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
Ignore "justMyCode" flag when doing a step into target #564
Comments
Having the debugger see that there's currently only stdlib code in a What do you think @int19h @karthiknadig? It may make sense to add this right after that pull request is integrated since this seems like a good use case for that (thinking about it, it may be a bit weird having the user go through the process of selecting the target and having it skipped because of the |
Hey @fabioz! Nice to read you here!! 👋 But what do you mean?
Isn't that the entire purpose of the
|
But that kind of defeats the purpose of the Usually you'd have:
and you want to skip the So, what I said that is hard is identifying that when you're stepping in a line, all the targets from that line will only enter library code and there'd never be user code called from that line. |
As a note, I still think that the I didn't really fiddle with the |
I'm sorry for the question but I have not found any instruction so far about what count as "MyCode"? How the debugger decide what is my code and what is not? |
https://code.visualstudio.com/docs/python/debugging#_justmycode
How the decision is made? I dunno. Maybe just anything that isn't in your workspace? 🤔 |
The actual code to compute the defaults is in: https://github.com/microsoft/debugpy/blob/main/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py#L154 (i.e.: it's based on As a note, the debugger does allow setting environment variables named |
@fabioz , @ewerybody Thank you. |
Thank you for the report. Given our current resources are working on the Python 3.12 debugger, we will not be fixing this issues in the pre Python 3.12 debugger. |
Issue Type: Feature Request
The
"justMyCode": true
feature is great! But sometimes I DO like to see what's going on in a built-in module. Of course:• I can go into my launch.json
• turn
"justMyCode": false
• save it
• go back to where I was
• restart debugging
• jump into the spot I was looking for ...
And when I'm done roll it all back again :/ that's quite some work...
I'd rather have the debugger see that there is currently NONE of "MyCode" at a current line anyway and "Step Into" DOES go into and not just skip.
As a workaround a
Force Step Into
would be nice that one could pack onto another shortcut.Contrary to microsoft/vscode-python#13719 I'd not appreciate to maintain an white- or blacklist for this.
Extension version: 2021.3.658691958
VS Code version: Code 1.54.3 (2b9aebd5354a3629c3aba0a5f5df49f43d6689f8, 2021-03-15T10:55:45.459Z)
OS version: Windows_NT x64 10.0.19042
The text was updated successfully, but these errors were encountered: