2

I just started Node.js development with VS 2017 Professional. Debugging generally works but when a uncaught exception is thrown the nodejs process is stopping immediately an i have no change to track the issue. I have also enabled the nodejs exptions in the debugger settings, but still no success. How can i setup VS to show the exceptions like in the C# development? Thanks!

1
  • Would you please share the latest information in your side? Is it related to the VS debugger settings or the project itself? Commented Jun 14, 2018 at 1:50

1 Answer 1

3

I test a simple sample using VS2017, it works well in my side even if I use the VS2017 Enterprise version.

(1) Please make sure that you use the latest VS2017 version. 15.7.3.

(2) Please make sure that you install the latest Node.js version.

https://nodejs.org/en/

(3) Enable the Exceptions settings like the following screen shot. And enable "Use the new Exception Helper" option under TOOLS->OPTIONS->Debugging.

enter image description here

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

1 Comment

Thank you very much! Enabling JavaScript (Node.js 8+) Exceptions did the trick! Another short question: what would you as expert say should i work for node.js development with VS Code or Standard Visual Studio?

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.