-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
justMyCode: false doesn't work #214433
Comments
/extPython Python debugger repo looks like better place to report this issue https://github.com/microsoft/vscode-python-debugger/issues |
It looks like this is caused by the Python extension. Please file the issue to the Python extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information. Happy Coding! |
I don't believe this is the fault of the python debugger. I can repro the problem 1.90, but not with 1.89, with both using the same version of the Python/Python Debugger extensions. See this issue: |
Probably, though that was parity with #206801 I don't think this is a bug with debug, more probably something Python should tweak if this is not desirable. Summary is that previous VS Code only used The linked PR fixes one place I missed when making this migration back in March. |
So is there currently a way to mark a frame to be rendered in a certain way, but still allow stepping into it and revealing that frame? Or is that combo now not allowed? |
deemphasize/subtle don't control stepping, that up to the debuggee, but yes there's no control that allows the frame to be rendered a 'greyed out' but still go to its location when it is the top frame in the call stack. Reviewing the code I realize we should probably make an adjustment: currently |
Rich linked a log in microsoft/debugpy#1596 (comment), looks like they just set |
It was before my time, but I'm guessing the top of stack behavior was introduced to avoid ending up in random internals if e.g. the runtime was asked to pause on exceptions or just if the "pause" button is hit. But in the case where you're stepping, I think there's an expectation that you're taken to where you step to, and the behavior of not showing where you are can be confusing. Perhaps we always respect the top of the stack if the stop event's reason is |
I'm not sure
|
Maybe, I think in the step case intent is pretty clear and gives us an opportunity to do the right thing. I think the only odd case would be stepping out into a deemphasized frame, but stepping into a case where the top frame is deemphasized, and certainly stepping statements within a deemphasized frame, should respect the top frame.
Not ruling that out, I would be good adding some wording to DAP indicating what UI implementors should/may do. |
Yeah. I think it's probably ok to do that |
Fyi the stable release with the fix went out yesterday |
it's working great, thanks! |
Please take a recording of what you're doing with the full window, thanks. https://gifcap.dev/ is useful. |
Sorry the file is big, then I uploaded to a cloud drive: https://drive.google.com/file/d/1t6W6M6LIuy_91mIViyMuRVliB_0__wbk/view?usp=sharing |
The actual error is probably the one shown in the title of the Call Stack view that the file cannot be found, and therefore not displayed to you |
Please open an issue on the Python repo for this, this looks unrelated |
OK, thanks for help. |
I think the issue you opened (@joon612) is actually another symptom of the code change here in VS code. |
Oh it's unable to find a path? @connor4312 this would be on your side right? |
No, that path doesn't actually exist. So the path returned by the debugger is incorrect. I'll reopen the issue on the debugger side. |
Sorry that's not the path but the exception. The stack frames are still being hidden. So I do think this is another symptom of the original bug. Here's the logs for when the problem occurs: |
As you can see in the logs, it should be showing the stack frame starting at:
Which is where the exception is raised. |
Ah, yea, that's the behavior I mentioned in
Perhaps we should add a behavior such that the top frame is shown if there is no user code to navigate to |
Type: Bug
It worked in 1.89
VS Code version: Code 1.90.0 (89de5a8, 2024-06-04T19:34:48.028Z)
OS version: Darwin arm64 23.5.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (38)
A/B Experiments
The text was updated successfully, but these errors were encountered: