Problem was down to simple bad programming and also lack of help from VS.
I reported in and now VS gives syntax errors.
This helps a lot but node still crashes out a lot even if no syntax errors.
The trick seems to be incrementally change code and run it to see if what you have done causes a crash.
If you change a lot of code and it crashes the bug could be anywhere !
Node js debugging
I have recently got into Node JS using a Visual Studio project.
VS does syntax check but doesn't give a list of errors and their line numbers as it does in C# and wpf.
This makes debugging tedious.
Node JS just crashing out means the problem could be anywhere.
Developer technologies | Visual Studio | Debugging
2 answers
Sort by: Most helpful
-
nigel wright 96 Reputation points
2021-06-19T19:55:52.773+00:00 -
Dylan Zhu-MSFT 6,431 Reputation points
2021-04-19T02:43:31.793+00:00 Hi 69673825,
There appear to be some compatibility issues, we suggest you report it to developer community: https://developercommunity.visualstudio.com/report?space=8&entry=problem.
Best Regards, Dylan
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**