【问题标题】:VSCode displays Waiting for the debugger to disconnectVSCode 显示 Waiting for the debugger to disconnect
【发布时间】:2018-12-31 08:29:26
【问题描述】:

我正在尝试在 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】:

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

这将告诉您发生了什么问题。

【讨论】:

    猜你喜欢
    • 2022-12-15
    • 2022-11-16
    • 2022-11-20
    • 2022-12-02
    • 2019-03-22
    • 1970-01-01
    • 2015-02-10
    • 2018-10-01
    • 2022-12-28
    相关资源
    最近更新 更多