简体   繁体   中英

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

我试过了,它在调试->选项-> Node.js工具中检查了所有三个选项后,可以与ctrl + F5一起使用

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM