我正在尝试调试VSCode上的量角器脚本。
我编辑了launch.json文件,但调试控制台抛出了以下错误。
VSCode调试控制台输出:
C:Program Filesnodejsnode.exe --inspect-brk=45448 conf.js C:UsersabcAppDataRoamingnpmnode_modulesprotractorexample/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上调试量角器脚本?
通常情况下,如果出现异常,就会发生这种情况。在您的vscode中的Debug > Breakpoints
下检查All Exceptions
。
这将给你一个迹象,什么是打破。