我正在尝试在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...
Launch.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上调试量角器脚本的插件?
答案 0 :(得分:0)
通常,如果发生异常,则会发生这种情况。在All Exceptions
下的vscode中检查Debug > Breakpoints
。
这将为您提供提示信息。