EN
VS Code - debug with npm run
4
points
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: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "npm run develop",
"name": "My Backend",
"request": "launch",
"type": "node-terminal"
}
]
}