-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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 Process Debugging not possibile with integratedTerminal #37589
Comments
I think it's a bug, the same configuration used to launch correctly in previous versions of VS Code |
@Tyriar did something change in this area? I haven't touched anything on the debug side. |
@weinand nothing comes to mind that would have impacted this. It looks like from this file that you're launching a terminal and reusing it: If the shell is not accepting input because the process is still running as the screenshot suggests, this is as expected. The shell needs to be either accepting input or you need to kill it and respawn the shell. |
Is it possible to create a dedicated instance of the 'integratedTerminal' for each launch configuration? So, launching two or more different process won't share the same instance. Even more, you can create a configuration key in the launch configuration to specify if you want to share or not the integratedTerminal. |
It's certainly possible, this is how I was expecting it to work. |
@Tyriar is it possible to find out whether the integrated terminal is accepting input? For external terminals I'm able to get this information (at least on macOS), so I can reuse an external terminal if it is not busy running a command. |
@weinand not currently and I'm not aware of how you would. Perhaps you can pull that sort of info by running a tool like |
The fix tries to determine whether the Integrated Terminal's shell process has at least one child process. If it has, we assume that the terminal is busy and a new terminal is created. |
In latest version of VS Code when I debug/launch a long-running process that uses the integratedTerminal setting, and then I decide to launch another process, the latter process will be launched in the same integratedTerminal of the former one, and, because of the fact that the terminal is busy in the execution of the first process, the second one not launch.
Look at the screenshot here below
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: