Skip to content

Instantly share code, notes, and snippets.

@mrsimpson
Last active April 12, 2018 22:54
Show Gist options
  • Save mrsimpson/7adef22c59fd1c0f137f84e07ac931ac to your computer and use it in GitHub Desktop.
Save mrsimpson/7adef22c59fd1c0f137f84e07ac931ac to your computer and use it in GitHub Desktop.
VSCode launch configuration for Assistify and Rocket.Chat - see https://github.com/Microsoft/vscode-node-debug/issues/179
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to meteor debug",
"type": "node",
"request": "attach",
"port": 9229,
"address": "localhost",
"restart": false,
"sourceMaps": true,
"sourceMapPathOverrides": {
"meteor://💻app/packages/assistify:*": "${workspaceFolder}/packages/assistify-*",
"meteor://💻app/packages/rocketchat:*": "${workspaceFolder}/packages/rocketchat-*"
}
},
{
"type": "chrome",
"request": "launch",
"name": "Frontend (Chrome)",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"meteor://💻app/packages/assistify:*": "${workspaceFolder}/packages/assistify-*",
"meteor://💻app/packages/rocketchat:*": "${workspaceFolder}/packages/rocketchat-*"
}
},
{
"type": "node",
"request": "launch",
"name": "Server (debug)",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"debug"
],
"port": 9229,
"timeout": 300000, //Rocket.Chat really takes some time to startup, so play it safe
"sourceMapPathOverrides": {
"meteor://💻app/packages/assistify:*": "${workspaceFolder}/packages/assistify-*",
"meteor://💻app/packages/rocketchat:*": "${workspaceFolder}/packages/rocketchat-*"
}
},
{
"type": "node",
"request": "launch",
"name": "Server (debug-brk)",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"debug-brk"
],
"port": 9229,
"timeout": 300000, //Rocket.Chat really takes some time to startup, so play it safe
"sourceMapPathOverrides": {
"meteor://💻app/packages/assistify:*": "${workspaceFolder}/packages/assistify-*",
"meteor://💻app/packages/rocketchat:*": "${workspaceFolder}/packages/rocketchat-*"
}
},
{
"type": "node",
"request": "launch",
"name": "Server (Testmode)",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"debug"
],
"port": 9229,
"timeout": 300000, //Rocket.Chat really takes some time to startup, so play it safe
"sourceMapPathOverrides": {
"meteor://💻app/packages/assistify:*": "${workspaceFolder}/packages/assistify-*",
"meteor://💻app/packages/rocketchat:*": "${workspaceFolder}/packages/rocketchat-*"
},
"env": {
"TEST_MODE": true
}
}
],
"compounds": [
{
"name": "Server + Frontend",
"configurations": [
"Frontend (Chrome)",
"Frontend (Chrome)"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment