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
Allow arrays in Variables view in Debugger to stay open when updated #74031
Comments
@isidorn In general this is an issue with the reference-ID-generation in the debug adapter. I can reproduce this with the node-debugger.
Observe:
Observe: |
@weinand the issue here is that the stack frame of the frame changes. Before pressing "step" the stackFrame has the id In order to fix this the debug adapter should return consistent frameId for same frames across steps. |
Assigning to @weinand and @roblourens to see if the stackFrame id can be preserved and removing the milestone. |
@isidorn the original problem occurred in the Java debugger. Fixing this in node.js debugging doesn't help that much for Java. |
Dear Java folks, VSCode is using the tree to represent the variables in the variables view. In order for us to keep the expansion state we need to uniquely identify each element in the tree. In practice we could remove this. And that each scope does not take the parents ID into consideration. We can only do this because in vscode ui we never show multiple scopes from multiple stack frames at the same time in the tree. Our variables view is always scoped per StackFrame. So we have two options to fix this.
Bottom line: I like the current id computation which is dependent on the parent and I would prefer to got with 1). If that is not possible than I can look into 2) ping @testforstephen |
i have two questions here:
|
|
I have pushed these changes. The insiders in about a week should have these chagnes |
@isidorn I may not likely be available to test this change, since I am preparing for a long, family vacation trip coming up really soon. I won't be available to test this until July 2019. Just letting everyone know in advance. |
I tried in the 1.36.0-insider with 2019-06-07T05:19:15.188Z version, the expanding status is kept after step. It works. |
Great, adding verified label. Thanks for trying it out. |
This is an extension to #2399.
I see that the discussion above mentioned about the flickering when the variables are updated when stepping over code.
However, it seems the flickering can cause expanded (inspected) variables to become closed after an update. You can see how I have to to keep reopening the panel to view the contents of an array in the Variables view when debugging and stepping over some code.
I would like to request a feature to keep the expanded (inspected) variables to stay expanded (inspected) when a "Step Over" command is issued in VS Code.
Thanks for reading.
The text was updated successfully, but these errors were encountered: