You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inspect Protocol - Debug Hover Box don't show up even in the right scope #37838
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
I don't think this problem will ever go away, because the sourcemaps are broken in a way that is hard to notice if you are just stepping with chrome devtools. They are correct on code lines, but wrong around the ends of functions and function declarations, e.g. scope boundaries, which wouldn't affect stepping. I can file a bug on Babel, but it will either not get fixed or break again, because few users will notice.
The babel config here is very basic, so this is easy to repro. I propose that we show hovers anywhere, not just in the current scope, or make it configurable. But, I think the scope locations should still be respected for inline debug values.
I propose that we show hovers anywhere, not just in the current scope, or make it configurable. But, I think the scope locations should still be respected for inline debug values.
Making this configurable sounds very strange, as it is quite technicaly involved. How would a user be supposed to know what to do, or even that such a configuraiton exists.
I am all up for disabling using the scope since it seems to create more harm than good.
Sure, we can use it for inline debug values since it would be rather noisy otherwise.
changed the title [-][ Bug ] Inspect Protocol - Debug Hover Box don't show up even in the right scope[/-][+]Inspect Protocol - Debug Hover Box don't show up even in the right scope[/+]on Nov 17, 2017
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
Activity
isidorn commentedon Nov 9, 2017
Forwarindg to roblourens since 90% the scope information coming from the debug adapter is wrong. Most likely a duplicate of some known issue.
Elies Lou ⚡️ (@Aetherall) could you share your repository so we try to reproduce this on our end?
Aetherall commentedon Nov 9, 2017
I made some tests, and the bug seems to appear in the case of a class method
I made a special repo to illustrate it
clone
install
run build
place breakpoint where specified
debug
https://github.com/Aetherall/vscode-debug-hover-bug/tree/master
roblourens commentedon Nov 10, 2017
Thanks for the simple repro!
Isidor Nikolic (@isidorn) This is just another case where the sourcemappings make no sense, like #35612, and some others.
I don't think this problem will ever go away, because the sourcemaps are broken in a way that is hard to notice if you are just stepping with chrome devtools. They are correct on code lines, but wrong around the ends of functions and function declarations, e.g. scope boundaries, which wouldn't affect stepping. I can file a bug on Babel, but it will either not get fixed or break again, because few users will notice.
The babel config here is very basic, so this is easy to repro. I propose that we show hovers anywhere, not just in the current scope, or make it configurable. But, I think the scope locations should still be respected for inline debug values.
isidorn commentedon Nov 10, 2017
Making this configurable sounds very strange, as it is quite technicaly involved. How would a user be supposed to know what to do, or even that such a configuraiton exists.
I am all up for disabling using the scope since it seems to create more harm than good.
Sure, we can use it for inline debug values since it would be rather noisy otherwise.
Let me know what you think roblourens Andre Weinand (@weinand)
[-][ Bug ] Inspect Protocol - Debug Hover Box don't show up even in the right scope[/-][+]Inspect Protocol - Debug Hover Box don't show up even in the right scope[/+]