简体   繁体   中英

Using Eclipse as Node.JS Remote Debugger (Connection Refused)

I've used the Using Eclipse as Node Applications Debugger ( https://github.com/joyent/node/wiki/using-eclipse-as-node-applications-debugger ) to attempt to remotely debug a node script. My environment consists of a MAC OSX (version 10.9.4) client on which I've successfully installed Eclipse Luna Release (4.4.0) Build id: 20140612-0600 and a Debain Wheezy Linux VM (VBOX 4.3.14). The firewall is correctly configured and both environment have the latest Node.JS installed (v0.10.31).

I was able to successfully debug a script locally with Eclipse on the MAC OSX client but I get a connection failure on the the attempt to debug remotely on the Debain Wheezy machine. ***Nodeclipse/chromedevtools failed to connect to Standalone V8 VM ( Check Help (F1) and Support http://www.nodeclipse.org/#support ) * . Info: Connection refused

I do run the "node --debug-brk dbgtest.js" on the Debain Wheezy machine with the defualt port: 5858. The debugger starts successfully on port 5858: tcp 0 0 127.0.0.1:5858 0.0.0.0:* LISTEN

I also tried the simple transparent TCP proxy script (tcpproxy.js) setup but it returns the same connection failure.

I have also successfully setup port forwarding ( ssh -R 5858:127.0.0.1:5858 [user]@[Debian-Host-Name] ) to the Debain machine but this did not help.

Any assistance would be appreciated.

Nodeclipse is using modified chromedevtools (version number 0.3.9).

For remote debugging I would suggest first to try 0.3.8 version of chromedevtools from https://code.google.com/p/chromedevtools/ (installed in other Eclipse instance) following instuctions already mentioned https://github.com/joyent/node/wiki/using-eclipse-as-node-applications-debugger

As co-author of Nodeclipse, I invite to co-work on enabling remote debugging with Nodeclipse https://github.com/nodeclipse/nodeclipse-1/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM