-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Variables, Watches not updated when changed from debug console #2399
Comments
The values will be updated once you do a step. I would close this as designed. @weinand opinions? |
@isidorn what's the behaviour in Chrome dev tools, node-inspector, or VS? |
Chrome and node-inspector do not update it, they behave same as we do -> closing as deigned |
+1 |
As a user, the expectation is that these values change when I change them in the console. Visual Studio does this - it will update the watch, floating data tips, etc. when changing values during break mode. This is the experience we are striving for. |
This is a valid feature request but it will cause the variables pane and watch pane to flicker every time you evaluate something in the console |
I guess I don't know why there is no flicker on step. I suggest then that we fix the flicker to make the desired experience great! |
You are right, because we preserve the tree element ids the flicker might not be big. Worth experimenting with, so on each evaluate from the repl I would refresh all the variables and all the watch expressions |
Will add this only if more users ask for it |
+1 My remote GDB debugging would really benefit from having Watches update continuously when doing not using breakpoints. This works with GDB in Eclipse where variables are polled over and over again also on hover. |
+1 |
+1 I'm less concerned about the watch windows than I am the value updating in the debug console, which DOES occur in chrome. We frequently use this to quickly set flags while in development, and this is currently not possible. |
We are now updating the watch expressions on each evaluation in the debug repl. |
@delmyers here's the issue I mentioned during the meeting |
Discussions in #8118 Bottom line is that the variables view can be stale after evaluations. Setting this to july to investigate how to tackle this issue. |
@isidorn you might already know this by now, but since you asked -- VS will reevaluate all watch expressions, and re-ask the backend for locals whenever:
|
VSCode is now properly refreshing the UI however node and node2 debug adapters are providing stale variables which in practice means the variables view does not get refreshed. |
when I update a variable in the debug console while in break mode, the updated value is not reflected in the Variables or Watch panes of the debug viewlet.
var x = 10;
result -> the value is not updated in the Variables/Local tree or the Watch tree (if you set up a watch).
found while testing #2171
The text was updated successfully, but these errors were encountered: