我正在尝试在运行 nyc 时进行调试,而不是在运行 mocha 测试时进行调试,因此我不必每次都运行两次测试。
VSCode 运行覆盖并显示给我,但它不会停止或验证断点,我该如何设置它以正确调试?
甚至可能吗?
我的启动配置:
{
"type": "node",
"request": "launch",
"name": "Coverge",
"program": "/usr/local/bin/nyc",
"args": [
"${workspaceFolder}/node_modules/mocha/bin/_mocha",
"-u",
"tdd",
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/tests/*/*"
],
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js"
],
"env": {},
"outputCapture": "std",
"internalConsoleOptions": "openOnSessionStart"
}