2

How can I debug NPM tasks from package.json file in the current version of Visual Studio Code and NPM?

I can only find answers on StackOverflow that seem to provide obsolete strategies.


In one of the answers a huge list of configurations is shown:

Current Visual Studio Code launch configurations


But I can only see a selection of four:

Current Visual Studio Code launch configurations


I need to debug a mocha test script from a public repository.

Any help is appreciated.

AxD
  • 2,714
  • 3
  • 31
  • 53

1 Answers1

1

Select Node.js and then you should see more options. There's also an "Add Configuration..." button at the bottom right of the editor when the launch.json file is open.

See this for more information.

ookadoo
  • 149
  • 5