-
Notifications
You must be signed in to change notification settings - Fork 137
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
Multi-line "Evaluate in Debug Console" fails to store intermediate variables. #932
Comments
This should be fixed in |
@fabioz when might this fix make it into a release? The issue is still present with the following versions. Let me know if i am missing something. Thanks. vscode: 1.68.1 |
There haven't been any debugpy releases since the fix went in, hence why it's not in VSCode yet. We don't have a specific schedule for releases; they happen once enough fixes have been accumulated. But you can keep track on them on the Releases tab in this repo, or on PyPI. |
Any update on when there may be a release with this fix? Or maybe a hint on how to run a more recent commit in vscode? Thanks, |
@CmpCtrl not sure about the release timeframe, but you can use the current version in Clone this repo:
Then, in your launch config add:
|
Issue Type: Bug
Behaviour
Expected vs. Actual
When debugging and stopped at a breakpoint inside a function, using
Evaluate in Debug Console
on a multi-line selection executes OK, but fails to store intermediate variables. I expect it to store all of the intermediate variables as if the code were run normally.Steps to reproduce:
Set a breakpoint in a function and debug. When stopped at the breakpoint highlight several rows, right-click, and select
Evaluate in Debug Console
.In this example you can see that the debugger executed OK but only
f
was stored in the locals. I expecta
thruf
to be stored.Sample script to reproduce:
Diagnostic data
python.languageServer
setting: PylanceUser Settings
Extension version: 2022.6.1
VS Code version: Code 1.67.0 (57fd6d0195bb9b9d1b49f6da5db789060795de47, 2022-05-04T12:06:02.889Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: