-
Notifications
You must be signed in to change notification settings - Fork 29k
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
Multiple debug sessions fail after a few seconds #38375
Comments
I was able to replicate the behavior on my Mac environment. Do you need more information or were you able to reproduce the issue yourself as well? I would be very happy to use multi debug sessions soon. |
@weeco This is most likely caused by your second launch config that's using Try removing |
@auchenberg I removed the args from the launch config but I am facing the same issue. |
This looks like a duplicate of #37589. It seriously impacts node multi root workspaces, as it's not possible to debug/launch multiple node processes from the same vscode instance, when using the integrated terminal. Using the internal console is not a valid workaround, as console logging will be mixed up between processes. Looking at the code, it seems to me the integratedTerminalInstance property is there only for this purpose (launch) and is always reused in this situation. I can understand it might be there to try and reuse the terminal in which the same process / launch config was previously running ( when restarting the debugger ) instead of generating new terminal instances. Think it just needs to be be restricted to the same launch config. I think the best solution would be similar to what was implemented for tasks, if possible, #19251 with the 'shared', 'dedicated', 'new'. |
duplicate of #37589 |
I want to launch and debug two sessions at once by using VSCode's compound feature. They start absolutely fine together and I can switch between them as desired. However after a few seconds one of the applications is apparently crashing (or disconnecting the debugger) showing this error message:
https://i.imgur.com/Bs8h0E1.png
The other process keeps running. Is it possible to debug two node processes at the same time or am I doing something wrong?
That's my launch.json:
Reproduces without extensions: Yes
In the integrated terminal I noticed it would not print any lines about starting the second application until I close the first application (which has been started first by the debugger). Basically it seems VSCode is trying to execute the "node app" command in the same powershell. Am I missing something in my configuration maybe?
The text was updated successfully, but these errors were encountered: