Gregory M Gregory M - 1 month ago 18
Node.js Question

Debugging Node/Express --- require('express') creates a break

My fairly limited experience with Node and Express doesn't help, but I'm having trouble debugging the app from the terminal window. Here is the issue:

running

node debug app.js
returns:

< debugger listening on port 5858
connecting... ok
break in server.js:1
1 var express = require('express');


Is this the right way of debugging express apps?

Answer

There is a popular GUI debugger (leveraging WebKit, i.e. Chrome, Safari..).

You should give it a go https://github.com/dannycoates/node-inspector

Comments