Node js debugging

Nigel Wright 291 Reputation points
2021-04-18T18:22:01.433+00:00

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
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. 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.**

    0 comments No comments

  2. nigel wright 96 Reputation points
    2021-06-19T19:55:52.773+00:00

    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 !

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.