node.js - Debugging with node-inspector: Cannot GET / -
i running nodejs server application want debug. in order achieve using node-inspector run app follows:
node-debug server.js
unfortunately can not access webserver via url anymore. visiting http://127.0.0.1:8080 results in
cannot /
however if start application usual way with
node server.js
everything fine (except fact can not debug). can access http://127.0.0.1:8080.
the '/' request not logged seems never reaches server.
hence problem have is: can access remote debugger via http://127.0.0.1:8080/debug?ws=127.0.0.1:8080&port=5858 can not start debugging because can not trigger action on webserver via url.
oh , debugger not paused or anything. skipped first break point.
i resolved problem choosing different port 8080. seems debugger uses port. not aware of because port familiar me used application.
Comments
Post a Comment