-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Current debug line is sometimes not highlighted correctly #41774
Comments
I have never seen this. The only way I can see something like this is using a recursive function like the following (place breakpoint on recursive call line. Then after continuing you can see the line very quickly turn green since that is expected due to the fact how we fetch frames and how the same line is also top stack frame and the one beneath it. function fib(n) {
if (n < 5) {
return 1;
}
return fib(n - 1) + fib(n - 2);
}
fib(60); In order to investigate better I suggest to put breakpoints here for decoration computations Apart from that, an interesting place would be here if you think this is connected with how we first fetch the top stack frame and only then the rest. |
Where is the code where we select the first stack frame? I notice that when the decoration isn't drawn at all, it has opened the correct file and scrolled to the right line, but the frame is not selected in the call stack. |
I haven't been able to repro this while debugging. But I see it several times a day. Have you never seen it? I did find better repro steps that may be related -
These steps repro 100% of the time. This may be new of the past few days, because I think I would have noticed it earlier. But the original issue definitely reproes sometimes when the debug viewlet is active. |
@roblourens great catch and great repro steps. |
When I click on that frame in the callstack, it becomes highlighted correctly.
I don't have better repro steps - if you have never seen this, tell me where to set a breakpoint.
The text was updated successfully, but these errors were encountered: