Gregory M Gregory M - 4 months ago 38
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:


node debug app.js

< 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?


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

You should give it a go