debugging nodejs application



Run your nodejs application using

"node --inspect server.js" (for example), you just need the --inspect switch.


Next, goto Chrome and click on DevTools for Nodejs. (the green button below) and then you're good to go.


Switch over to "source" tab and then set your breakpoint accordingly.



Comments

Popular posts from this blog

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

android build issue with version compatibility with agp and hilt : An exception occurred applying plugin request [id: 'com.google.dagger.hilt.android', version: '2.52']