atom-node-debugger icon indicating copy to clipboard operation
atom-node-debugger copied to clipboard

Debugging Express App

Open birdcone opened this issue 9 years ago • 3 comments
trafficstars

Hi. I am a new node.js developer and having problems debugging my express app.

My configuration is below and when I press "F5" I get "Debugger listening on port 3000"

"node-debugger": nodePath: "/usr/local/bin/node" appArgs: "" debugPort: 3000 scriptMain: "/Users/bill/TestApp/bin/www"

However when I attempt to run my app such as "http://localhost:3000/index.js" all I see is the following (app runs fine when I run from terminal). Any advice would be greatly appreciated.

Type: connect V8-Version: 3.28.73 Protocol-Version: 1 Embedding-Host: node v0.12.2 Content-Length: 0

birdcone avatar Dec 26 '15 00:12 birdcone

Hi,

Scriptmain should point to your main file such as app.js.

codecontemplator avatar Dec 26 '15 09:12 codecontemplator

Same issue here. Always the same message and I'm pointing to the right file.

Type: connect V8-Version: 4.5.103.35 Protocol-Version: 1 Embedding-Host: node v4.1.2 Content-Length: 0

boadude avatar Jan 24 '16 12:01 boadude

@birdcone Your debug port should be a different port than your express API. If express is running on port 3000, try setting debugPort to 5858 or 3001.

codyhazelwood avatar Feb 17 '16 22:02 codyhazelwood