VS Code 的标准输出在哪里? [英] Where is stdout for VS Code?
本文介绍了VS Code 的标准输出在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 VS Code 中运行 Node.js.我在调试窗口中看到 console.log
的输出.
I am running Node.js in VS Code. I see output of console.log
in the Debug Window.
process.stdout.write
去哪里了?我在调试控制台或任何输出窗口中都找不到它.
Where does process.stdout.write
go to? I can't find it in the Debug Console or any of the Output windows.
我的launch.json就是这样:
My launch.json is simply this:
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/job.js"
}
]
}
推荐答案
查看进程问题.stdout.write 建议的修复程序将这些添加到您的启动配置中:
Looking at issues with process.stdout.write the suggested fixes are adding these to your launch config:
"console": "internalConsole",
"outputCapture": "std",
特别是 outputCapture 条目很重要.
Especially the outputCapture entry is important.
这篇关于VS Code 的标准输出在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文