Add a launch.json option to capture output from stdoutput and stderr streams - #138
Conversation
|
Vakhurin Sergei (@igelbox), |
roblourens
left a comment
There was a problem hiding this comment.
This is great, thanks!
When capturing stdout/err, I think it shouldn't show messages that come over the debug port, to avoid showing duplicate messages. Can you override onConsoleAPICalled to disable that in this case?
|
roblourens thanks for your feedback. |
|
You are quite right. Sorry, I misread... I will merge this tomorrow. |
|
Thanks! |
This will help with microsoft/vscode#19750.
We'll just set
"outputCapture": "std",in the launch.json file.This approach is more lightweight than the original proposed
"console": "internalConsole"approach, which starts a separate shell process with (e.g. on my PC zsh with lots of plugins is started).