-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Call stack only shows top frame after restart #39371
Comments
What version of node are you using? |
8.9.0 |
Here are some things which could help us track this down
|
Thanks for the suggestions.
|
Let's first go with option 3 with @roblourens |
@isidorn Trying to figure it out myself right now. It's a bit confusing that |
After a couple of runs, I'm assuming that the additional (very noticeable) delay introduced by the verbose logging is preventing the issue from happening. I'd really like to look into debugging the code itself, as that looks very promising from what I can tell. Is there some hacky way I could just add some logging, rebuild and put the |
That switch is deprecated, set |
I have the same issue on my home workstation and was able to reproduce it with |
Feel free to email it to me, at the address in my profile. |
@roblourens Done |
Thanks. @isidorn The log shows only a single Then, requests for scopes and variables, but no additional stackTrace requests. |
@roblourens thanks for analysing the logs, so it seems to be an issue on the vscode side. Unfortunetely I can not provide more help with the information I am given. |
Alright, I copied my extensions over. When I run the Launch VS Code config, it will launch the development version of Code, but the host instance will show:
If I try to Attach to VS Code after the previous attempt launched VS Code, I get the same error message. So I just opened the DevTools in the development build and placed the breakpoints in there, but, to no avail. When starting my application I still get:
I'm not on OSX, so the paths from #20623 were only an indication of where to look. I guess those were not the extensions I was looking for. Alright, figured it out. Debugging now. |
When waiting on this breakpoint for some time and then continuing, it will be hit again with 20 more stack frames and the error is not reproduced. When not waiting, we continue
No more breakpoints are hit afterwards and I see a call stack with 1 frame in the UI. |
@oliversalzburg thanks a lot for the investigation. @roblourens since the last breakpoint is hit it seems like vscode sends out another |
Let me know if I should check anything else. |
@isidorn I forwarded the logs. They only show the one stackFrame request. |
For completeness I want to mention that I did the debugging on my work workstation and the trace on my home workstation. In theory, it could be different root causes for the same problem. If I'm unresponsive during next week, it's because I'm on a holiday. I'd be happy to pick up again afterwards if you need me. |
@oliversalzburg I have looked into the logs and it seems to not be related to the breakpoint investagion you did. Though I might be wrong.
Moving to decmeber since you are on vacation so no need to rush this |
@isidorn A screen-sharing session sounds like a good idea, please get in touch via email (in my profile) so we can figure out a good time. |
During the debugging session, we noticed that the second |
Exactly. Also @oliversalzburg is using node version On the vscode side the issue is that I do not properly show the error if the second call stack returns erroniously (which I will look into fixing). |
I also noticed that this behavior seems to only happen when I restart the debugging session. When I stop and start it instead, the error does not reproduce. This also means that it apparently never happens during the initial run. |
I'm debugging, something weird is happening. I think vscode the debug adapter is actually not terminating correctly when using 'restart'. |
It also reproes with the legacy adapter. Could something have changed on the vscode side? @weinand |
@isidorn that's in your area. Are you aware of any related changes in that area? |
We are leaving the process behind after reloading. But the adapter should have shut itself down. Could be a change in the vscode-debugadapter module but I don't see anything. |
@roblourens great catch about multiple session lying around. @oliversalzburg you can pick up the vscode insiders from Monday if you watn your issue fixed. Thanks again for great help. |
@roblourens You really mean "reload" and not "restart", right? I cannot reproduce the problem of a left behind DA, neither in Stable nor in Insider (and neither "reload" nor "restart"). |
@isidorn Awesome :) Thanks everyone |
I guess I mean restart. I'll try with Isidor's fix. |
@isidorn @roblourens Has there been any development regarding this issue? |
@oliversalzburg this issue is fixed. However it will only be availble in the next stable release (in a couple of weeks) |
(2 theme extensions excluded)
Lately I've been running into this issue many times per day, but I can't see the pattern that causes this.
When I hit a breakpoint, only the top stack frame is shown. More frames are displayed once I step to the next line. However, this is not possible if the line I'm breaking on is a
throw
statement, which makes this an annoyance.Restarting VS Code fixes this briefly, but VS Code will start misbehaving again shortly after.
I've had this in multiple projects in various source files, so I doubt it is related to anything specific in these projects.
What can I do to gather more insights on this?
The text was updated successfully, but these errors were encountered: