在vscode中如何调试node应用

在debug菜单中打开配置

        "program": "${workspaceRoot}/nodeJS/ssr-practise/server/server.js"
            "name": "启动程序",
            "program": "${workspaceRoot}/nodeJS/koaPrj/bin/www",
            "runtimeExecutable": "${workspaceRoot}/nodeJS/koaPrj/node_modules/.bin/nodemon", // 或者 node-dev
            "restart": true,
            "console": "integratedTerminal",
            "skipFiles": [
            "${workspaceRoot}/node_modules/**/*.js",
            "/**/*.js"
            ]

你可能感兴趣的:(在vscode中如何调试node应用)