NodeJS debug using visual studio code

2

I'm using Visual Studio Code and I'm not able to debug a nodejs through it.

If I put a breakpoint anywhere in my app.js and start the debug, it works, but when I already have it in the browser and move to another route, for example, nothing happens. Updating the page as it gets on the root (/) route, also nothing happens. It is only triggered the first time.

I'm now starting to use nodejs + visual studio code and would like to know if anyone could guide me and explain how the debug works.

    
asked by anonymous 13.09.2016 / 02:21

1 answer

0

I discovered that I was putting the breakpoint in the wrong place, causing it not to fire using Visual Studio Code.

I also tested the Visual Studio Community 2015 debug with Nodejs support and it seemed like a great programming option to use.

In this way, I consider my doubt remedied.

    
14.09.2016 / 22:10