1

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!

plex88
  • 43
  • 5
  • Would you please share the latest information in your side? Is it related to the VS debugger settings or the project itself? – Jack Zhai-MSFT Jun 14 '18 at 01:50

1 Answers1

2

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

Jack Zhai-MSFT
  • 5,986
  • 1
  • 10
  • 19
  • 1
    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? – plex88 Jun 15 '18 at 14:42