Debug : Server Side in VScode


#1

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


#2

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"
            ]
        }
    ]
}

#3

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