Skip to content

Instantly share code, notes, and snippets.

@danylkaaa
Created February 6, 2019 21:02
Show Gist options
  • Save danylkaaa/da0a4e8a026f73514eb7c9ac13df93d7 to your computer and use it in GitHub Desktop.
Save danylkaaa/da0a4e8a026f73514eb7c9ac13df93d7 to your computer and use it in GitHub Desktop.
vscode debug mocha
{
"version": "0.2.0",
"configurations": [
{
"name": "debug",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "yarn",
"runtimeArgs": ["debug"],
"port": 9229,
"env": { "DEBUG": "app:*", "NODE_ENV": "development" },
"console": "internalConsole"
},
{
"name": "mocha debug",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "${workspaceFolder}/node_modules/mocha/bin/mocha",
"args": [
"${file}",
"--no-timeouts",
"--inspect-brk",
"--opts",
"${workspaceFolder}/test/mocha.opts"
],
"env": { "DEBUG": "app:*", "NODE_ENV": "test" },
"console": "internalConsole"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment