-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Support to start multiple debug sessions from a single launch config #110226
Comments
I agree this could be improved. Do you think we should simply add these "Launch anyway" button in the notification? Or would you expect a modal dialog? Or something else? |
@isidorn good question. Initially I thought a modal dialog would be ok because the situation is rare and users should have the problem "right in their face". "Launch anyway" is a good action text for both cases. |
I started thinking about this and some thoughts:
Due to the above, I think it is quite hard for the user to accidently get into this state. He has to click two times on the action in the Debug Viewlet, but in correct time intervals (since while initialising he would not be able to do that). And due to that, I suggest that we simply start a new session automatically and give it a different name - suffix with Let me know what you think. |
Sounds good to me. I know at some point I'll accidentally start a duplicate session if I have multiple launch configs and forget to switch, but the impact of this is minor and easily fixed by stopping the new sesion. |
@isidorn yep, let's try this. The only issue I see is that the names of the additional debug sessions no longer match the name of the underlying debug config. Let's hope that nobody is relying on this... |
I have pushed a first version of this. Try it out and let me know how it works for you. Note that the naming will look like this when using js-debug due to child sessions, which I think is fine |
Today VS Code prohibits (silently) launching multiple debug sessions from a single launch config.
I suggest that we improve this obscure behavior in the following way:
when trying to launch a launch config a second time an alert is shown explaining that a debug session is already running and provides an option to launch another session under a different name, e.g. "program" -> "program (2)" or to cancel the attempt.
The text was updated successfully, but these errors were encountered: