Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add launch.json file for working in VS Code #47

Open
OfirD1 opened this issue Sep 19, 2021 · 0 comments
Open

Add launch.json file for working in VS Code #47

OfirD1 opened this issue Sep 19, 2021 · 0 comments

Comments

@OfirD1
Copy link

OfirD1 commented Sep 19, 2021

I think it would be nice if you could add a .vscode folder with the following launch.json (taken from here, and tested by myself to work), so that when cloning the repo people could debug it using VS Code:

{
  "version": "0.2.0",
  "configurations": [
    {
        "type": "node",
        "request": "launch",
        "name": "Mocha All",
        "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
        "args": [
            "--timeout",
            "999999",
            "--colors",
            "${workspaceFolder}/test"
        ],
        "console": "integratedTerminal",
        "internalConsoleOptions": "neverOpen",
        "skipFiles": [
            "<node_internals>/**/*.js"
        ],
        "env": {
            "NODE_ENV": "test"
        }
    },
    {
        "type": "node",
        "request": "launch",
        "name": "Mocha Current File",
        "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
        "args": [
            "--timeout",
            "999999",
            "--colors",
            "${file}"
        ],
        "console": "integratedTerminal",
        "internalConsoleOptions": "neverOpen",
        "skipFiles": [
            "<node_internals>/**/*.js"
        ],
        "env": {
            "NODE_ENV": "test"
        }
    }
  ]
}
@OfirD1 OfirD1 changed the title Add launch.config file for working in VS Code Add launch.json file for working in VS Code Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant