When I debug my node rest api, I try to use node -inpector
node-inspector
node --debug server.js
This way I can debug my api using localhost: 3000 / api ... If I use node -debug there is no way. It does not start port 3000.
However, my code is ES6, so in my current debugging my code is full of Babel.
I tried using babel- node -debug, but it seemed to be the same situation as node -debug. I see ES6 code, but I cannot debug through port 3000.
Any workaround?
source
share