Compiled from a few sources here is my launch.json for launching meteor from Visual Studio code on MacOS. Debugger for Chrome must be installed. Currently running VSCode 1.26.1. My meteor project is on 1.6
I left my settings notation there as it was a little confusing to keep the settings file on it’s own line. Making a single --settings settings.json
line added extra single quotes to the resulting launch attempt.
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Meteor: Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
"name": "Meteor: Server",
"cwd": "${workspaceRoot}/",
"runtimeExecutable": "/usr/local/bin/meteor",
"runtimeArgs": [
"run",
"--inspect",
"--settings",
"settings.json"
],
"restart": true,
"timeout": 30000,
"stopOnEntry": false,
"sourceMaps": true,
"port": 9229
}
],
"compounds": [
{
"name": "Meteor: All",
"configurations": ["Meteor: Server", "Meteor: Chrome"]
}
]
}