VS Code - debug with npm run

4 points
Created by:

In this short article, we would like to show you how .vscode/launch.json file should be configured to let us debug a project with VS Code.

Note: the article shows example configuration for a project that we run in terminal using npm run my_script_name command.

Example .vscode/launch.json config file:

    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit:
    "version": "0.2.0",
    "configurations": [
            "command": "npm run develop",
            "name": "My Backend",
            "request": "launch",
            "type": "node-terminal"

See also

  1. VS Code - debug Gatsby React project in IDE on Ubuntu
Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

ÔŁĄ´ŞĆ­čĺ╗ ­čÖé