Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get node.js console to pause in Visual Studio 2017?

I'm using Visual Studio 2017 with the built in tools support for node.js. I want to be able to create a empty console node.js project and run the debugger and see the console window output.

However, when I run it, it opens the console and runs the script so quickly I cannot see what it is doing.

I have followed previous questions (Node.js console gets closed immediately after i execute the program from Visual Studio 2012 in Windows 8)

and have gone into Tools > Options > Node.js and have all three options checked:

Wait for input when process exits abnormally

Wait for input when process exits normally

Enable Edit and Continue

Although I have all three options checked, The behavior does not change. Could someone please help?

thanks

like image 786
Bear Avatar asked Oct 25 '25 09:10

Bear


1 Answers

I tried, It works with ctrl + F5 After checking all three options in debug -> options -> Node.js Tools

like image 120
Soheil A. Avatar answered Oct 27 '25 22:10

Soheil A.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!