javascript - Debugging server side with node.js -
i have burning question in head regarding debugging, see when writing javascript client side can go chrome's console , track variables , objects etc see happening code better.. not able head around how can same on server side (node js)? let's front end submitted form express server, how go checking if instance req object received or not? go checking variables , objects (debugging) server side code? can't on console of browser code exists , executes on server side can't access server side objects etc through browser's console.
you can still console.log(). it'll print screen run server. however, it's not walking through code debugger can set breakpoints , lots of other things debuggers can do. i've used both webstorm's debugger , node-inspector.
you might want node-inspector. debugger chrome's dev-tool, might familiar with. link below provides installation tutorials.
Comments
Post a Comment