Debug : Server Side in VScode

I just wanted to debug back-end side in my VScode IDE

Iā€™m using this configuration and it works:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "chrome",
            "request": "launch",
            "name": "Meteor: Chrome",
            "url": "http://localhost:3000",
            "webRoot": "${workspaceRoot}"
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Meteor: Server",
            "cwd": "${workspaceRoot}/",
            "runtimeExecutable": "${workspaceRoot}/.meteor/local/dev_bundle/bin/npm",
            "restart": true,
            "timeout": 30000,
            "stopOnEntry": false,
            "sourceMaps": true,
            "protocol": "inspector",
            "port": 9229
        }
    ],
    "compounds": [
        {
            "name": "Meteor: All",
            "configurations": [
                "Meteor: Server",
                "Meteor: Chrome"
            ]
        }
    ]
}

See https://github.com/Microsoft/vscode-recipes/tree/master/meteor

1 Like