Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Output from process running in Terminal appears in Console #46414
Issue Type: Bug
VS Code version: Code 1.21.1 (79b44aa, 2018-03-14T14:46:47.128Z)
Reproduces only with extensions
(1 theme extensions excluded)
This is by design, when attached to a process, any output that comes over the debug port is written to the console. Is that a problem?
That's true, writing directly to the output stream doesn't send it through the debug port.
@roblourens It's unexpected in the configuration I set up.
I run 4 processes (the core processes of our platform) through a launch configuration compound and I want to (be able to) debug all of them, thus I run them through the Node debugger.
I also set these up to use a discrete terminal for each process to keep each output isolated.
However, the output of all processes is merged into the debug console, which is unfortunate at the very least. This is additionally complicated by the fact that I run a fifth process in the same session which I actually actively want to work on. I expect that process to output to the debug console.
So the whole output is just a big mess that is extremely hard to work with. https://stackoverflow.com/questions/49449739/how-to-control-terminal-names-in-debugging-compound also plays into this overall issue.
I'm trying to decide, is this just a problem of differentiating output from different processes in the debug console? @isidorn is there any other issue for filtering/labeling output from different processes?
Or, is it just about what we do with output from a process running in the terminal? It would make sense to not send output to the debug console in that case. I still do because I figure that it shouldn't hurt (and if it's too confusing, then it should be fixed, see above). But keeping the output out of the debug console in this case would be a good workaround.
From my point of view, having multiple debug console tabs (one for each running process) seems like a very attractive solution. But only if they aren't solved through the dropdown approach from the terminals, which does not have a good feel to it.
My approach utilizing terminal windows was just me trying to work with what I see as my options.