Skip to main content

All Questions

0 votes
0 answers
205 views

Is there a UI in VSCode for adding npm scripts directly to launch.json?

I am working on a Node.js project in Visual Studio Code. I noticed that when you open the package.json file, there's a debug button above the scripts property. When clicked, it allows me to select and ...
enoeht's user avatar
  • 493
2 votes
1 answer
5k views

Debugging in VSCode with a npm script

In my package.json I have some scripts defined that look like this: "scripts": { "build": "tsc -p tsconfig.json", "run": "node --experimental-...
StrangeGirlMurph's user avatar
5 votes
0 answers
1k views

Restart npm scripts on Visual Studio Code

Is there a restart button to restart npm scripts on visual studio code like the ones that exist in IntelliJ? Until now, I need to close the terminal running the npm script and start it again.
Jöcker's user avatar
  • 6,848
1 vote
0 answers
711 views

Visual Studio Code debugger reports "npm ERR! code ELIFECYCLE node.js" after script is completed

This is my very simple Node.js program configuration for VSCode: main.js const msg = "Hello World!"; console.log(msg); package.json { ... "scripts": { "start": "node --inspect-brk=9229 main....
Serg's user avatar
  • 7,515