ejang
ejang

Reputation: 4062

NodeJS eclipse V8 deb

trying to follow https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger

eclipse set up, project in workspace, but when I run with the debug configuration:

Failed to connect to Standalone V8 VM Timed out waiting for handshake

Also, i have multiple .js files. How does Eclipse V8 plugin know which one is the server script for Node?

Upvotes: 1

Views: 2222

Answers (2)

psiphi75
psiphi75

Reputation: 2065

I had a similar issue with Eclipse. I found I actually had another process listening on port 5858. The following command shows me the processes on port 5858:

sudo lsof -i | grep 5858

Upvotes: 2

Chris
Chris

Reputation: 4225

Use distinct ports per node script. I.E. 5858 for the first script and 5859 for the second.

node --debug-brk=5858 MyApp1.js
node --debug-brk=5859 MyApp2.js

Upvotes: 0

Related Questions