Skip to content

Instantly share code, notes, and snippets.

@vishakvkt
Last active March 27, 2016 09:52
Show Gist options
  • Save vishakvkt/63f2089af27abe6103df to your computer and use it in GitHub Desktop.
Save vishakvkt/63f2089af27abe6103df to your computer and use it in GitHub Desktop.
Mocha Debug launch.json for Visual studio Code on OS X
{
// Name of configuration; appears in the launch configuration drop down menu.
"name": "Run mocha",
// Type of configuration. Possible values: "node", "mono".
"type": "node",
// Workspace relative or absolute path to the program.
"program": "/usr/local/lib/node_modules/mocha/bin/_mocha",
// Automatically stop program after launch.
"stopOnEntry": false,
// Command line arguments passed to the program.
"args": ["test/linked_list_test.js"],
// Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
"cwd": "${workspaceRoot}",
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
"runtimeExecutable": null,
// Environment variables passed to the program.
"env": { "NODE_ENV": "production"}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment