VSCode显示等待调试器断开连接

问题描述 投票:2回答:1

我正在调试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上调试量角器脚本的插件?

javascript automation visual-studio-code protractor vscode-debugger
1个回答
0
投票

通常,如果有例外,会发生这种情况。在All Exceptions下的vscode中检查Debug > Breakpoints

这将为您提供中断提示。

© www.soinside.com 2019 - 2024. All rights reserved.