调试我的typescript文件时出错: - >附加调试器。等待调试器断开连接

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

我在网上浏览过多篇文章,我已经尝试过网上给出的所有可能的方法,但到目前为止我还没有任何工作。我重新安装了节点,vs代码,npm,但没有任何工作。 我正在使用 - > VSCode版本:1.27.2 操作系统版本:Windows 10 Pro 64位操作系统,基于x64的处理器 节点版本:v8.11.3 我的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": [
        {
            "name": "Launch",
            "type": "node",
            "request": "launch",
            "program": "${workspaceRoot}/dist/LeonardoGrader.js",
            "stopOnEntry": false,
            "args": [],
            "cwd": "${workspaceRoot}",
            "runtimeExecutable": null,
            "runtimeArgs": [
            "--nolazy"
            ],
            "env": {
            "NODE_ENV": "development"
            },
            "sourceMaps": true,
            "outFiles": ["${workspaceRoot}/dist/**/*.js"]
            }
    ]
}

任何帮助将不胜感激。谢谢。

node.js typescript debugging visual-studio-code vscode-debugger
1个回答
0
投票

该输出意味着您的程序在没有停在调试器中的情况下运行完成。设置一些断点或将stopOnEntry选项更改为true以停止第一行代码上的程序。

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