atom-node-debugger
atom-node-debugger copied to clipboard
Debugging Express App
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
Hi,
Scriptmain should point to your main file such as app.js.
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
@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.