问题描述
我已经完全按照创建了launch.json
文件,用于在 VS Code 上调试我的 Electron 应用程序。
但是console.log()
没有向调试控制台打印任何内容。
如果我将"console": "integratedTerminal"
到launch.json
,日志会显示在内置终端上。
我希望日志显示在调试控制台上。
我该如何解决?
1楼
jabu.hlong
21
已采纳
2020-02-05 23:30:06
在您使用的launch.json
配置中,添加"outputCapture": "std"
例子
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"outputCapture": "std",
...
}
]
}