-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
debug focus automatically switches to newly created debug session #128132
Comments
I checked last two stables (1.58 and 1.57) and we were already behaving like this. also fyi @connor4312 to get his thoughts |
Yea I think if a debug session is paused, focus should not be automatically moved away |
If this is not a regression, I'm fine with not fixing this for July. But we should fix this at the beginning of the August cycle. |
Maybe #121898 is related. |
I pushed a similar fix for #128400
So the only way to solve this that I see is to auto focus only after a timeout. Which Visual Studio does not do. |
Given this is a very rare opportunity to catch people who work on VScode JS debugger, I have a small offtopic question How does the debugger know the line number on which It's important for logger packages like https://github.com/winstonjs/winston |
@baybal you can file issues here or on js-debug and I usually respond within 24h 😉 The debugger knows the line console.log is called on since the call stack reported by V8. The first non-skipped location in the stack will be shown, which you can adjust using skipFiles patterns. |
@isidorn above you said:
I do not understand how your statement is related to the issue at hand: my ask was: A new debug session should never change the selected session in the CALL STACK view because the new session is running and there is nothing that needs to be shown by focusing on it. Only if the new session stops, we should focus on it. So there is no other paused process/thread to which we can/should pass the focus (as was asked in #125144). |
The fix I did, did not cover the case when all sessions are siblings. Before we would always focus on a new child session if the parent session was focused. This does not really make sense in general, and would only make sense for I suggest to do this for the September milestone, since we have always behaved like this and to give some time to catch potential regressions. I have pushed a fix for this to fyi @roblourens |
@isidorn this works now for my Cluster.zip sample. |
Steps:
Observe: a new debug session starts and the corresponding node in the CALL STACK gets selected. As a consequence the debug focus switches to the new session and the debug toolbar no longer shows the "Continue" button. In order to continue stepping, a stopped debug session must be selected in the CALL STACK view.
This happens for every new child process of the cluster...
A new debug session should never change the selected session in the CALL STACK view (at least if there is already a stopped debug session.
The text was updated successfully, but these errors were encountered: