VSCode Node cannot launch program setting the 'outFiles' attribute might help

Posted xdot

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VSCode Node cannot launch program setting the 'outFiles' attribute might help相关的知识,希望对你有一定的参考价值。

简介:项目迁移到GitLab 后不能调试,各种百度谷歌 stackoverflow git  vscode issue  无果, N天后解决 明显和outFiles没关系

 

解决办法:  add configuration 出现 "type": "pwa-node"

 "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "program": "${workspaceFolder}\bin\www"
        },
        {
            "name": "Launch pwa-node",
            "program": "${workspaceFolder}/bin/www",
            "request": "launch",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "type": "pwa-node"
        }
    ]

 

以上是关于VSCode Node cannot launch program setting the 'outFiles' attribute might help的主要内容,如果未能解决你的问题,请参考以下文章

VSCode Node.js 调试配置 (npm 脚本启动)

VSCode调试egg.js项目

vscode 中的 launch.json 中不允许使用属性 args

VSCode - Launch.json指定参数

VSCode 使用教程-9.Node运行js出现 Cannot use import statement outside a module的问题

ROS2学习笔记22--使用launch启动/监听多个node节点