3

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.

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.