javascript - Not able to debug node js app from browser -
i want debug node application(via webstorm10 & i've 9),i've put breakpoint in required file , edit run configuration following (for local debug want debug local host...) ,i want send post message via postman or fiddler , debug it... https://www.jetbrains.com/webstorm/help/running-and-debugging-node-js.html
the issue program using following code
app.set('port', process.env.port || 3000);
and when click on debug(in ws) every time new port like
debugger listening on port 59267
what should in case?
i wanted debug app.get('/aa', function(req, res) {
when put in browser http://localhost:59267/aa
not stops , got in browser following response:
type: connect v8-version: 3.28.73 protocol-version: 1 embedding-host: node v0.12.2 content-length: 0
always use process.env.port or 3000 in browser
you can actual port below:
console.log('server running @ port:' + app.get('port'));
Comments
Post a Comment