I am running vs code and meteor 1.10.2 on ubuntu.
I can successfully pause at breakpoints for the server code using chrome devtools with this command from the system terminal:
MONGO_URL=mongodb://localhost:27017/h2iot5 meteor --settings settings-development.json --port 27016 --exclude-archs web.browser.legacy,web.cordova --inspect-brk
Yes, I use port 27016.
I have used the launch.json below in vs code (obtained from https://github.com/Microsoft/vscode-recipes/tree/master/meteor).
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Meteor: Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"outputCapture": "std"
},
{
"type": "node",
"request": "launch",
"name": "Meteor: Node",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "debug"],
"outputCapture": "std",
"port": 9229,
"timeout": 30000
}
],
"compounds": [
{
"name": "Meteor: All",
"configurations": ["Meteor: Node", "Meteor: Chrome"]
}
]
}
I am unable to pause at the same breakpoints when I run this command from vs code’s terminal
MONGO_URL=mongodb://localhost:27017/h2iot5 meteor --settings settings-development.json --port 27016 --exclude-archs web.browser.legacy,web.cordova --inspect-brk
As a side note, the vs code checker complains that
"outputCapture": "std"
is not allowed
Any advice?