我正在尝试在 VSCode 上调试量角器脚本。
我编辑了 launch.json 文件,但调试控制台抛出以下错误。
VSCode 调试控制台输出:
C:\Program Files\nodejs\node.exe --inspect-brk=45448 conf.js C:\Users\abc\AppData\Roaming\npm\node_modules\protractor\example/conf.js
Debugger listening on ws://127.0.0.1:45448/ab61a2d7-4b40-456b-86cb-838e94dfe5b0
Debugger attached.
Waiting for the debugger to disconnect...
启动.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [{
"type": "node",
"request": "launch",
"name": "Protractor",
// "program": "${workspaceRoot}/node_modules/protractor/bin/protractor/example/conf.js",
"program": "${workspaceRoot}/conf.js",
"args": ["${workspaceFolder}/conf.js"],
"cwd": "${workspaceFolder}"
}]
}
VSCode 上是否有用于调试量角器脚本的插件?