如果我从终端运行yarn dev-debug
,并使用Chrome的NodeJS调试器,则所有console.log和console.info都将打印到终端。但是,如果我在以下配置中使用VSCode的调试器,则在调试控制台中仅显示ERROR和WARN。如何更改此级别?理想情况下,在此阶段,我希望只能 显示.log,因为有些现有的错误和警告在它们妨碍日志记录的同时我希望忽略。是我真正关心的。
"type": "node",
"request": "launch",
"name": "Launch Program",
"runtimeExecutable": "yarn",
"runtimeArgs": ["dev-debug"],
"internalConsoleOptions": "openOnSessionStart",
"port": 9229,
{
...
"dev-debug": "node --inspect node_modules/.bin/nuxt-ts",
...
}
console.log("hello")
=> undefined
console.info("hello")
=> undefined
console.error("hello")
=> ERROR hello
=> undefined
console.warn("hello")
=> WARN hello
=> undefined