Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse/Nodeclipse Debugging doesn't work anymore #392

Closed
ataraxus opened this issue Jan 14, 2015 · 5 comments
Closed

Eclipse/Nodeclipse Debugging doesn't work anymore #392

ataraxus opened this issue Jan 14, 2015 · 5 comments

Comments

@ataraxus
Copy link

When using my normal workflow and IDE (Version: Luna Release (4.4.0) Build id: 20140612-0600) I've some trouble with io.js 1.0.1. Debugging doesn't work as it used to: Breakpoints still working, but eclipse is not able to resolve any variables, so inspecting there content is not possible.

I don't know if this is an issue of eclipse or io.js. If somebody could tell me what information is needed to figure this out I would be glad to help!

@indutny
Copy link
Member

indutny commented Jan 14, 2015

@ataraxus thanks for sharing this.

May I ask you to help us a bit and provide a tcpdump of this session? I.e. if you could start a tcpdump in a capture mode, start iojs, start Eclipse and try debugging it, and send us the dump - it would be super awesome!

@ataraxus
Copy link
Author

@indutny sorry for beeing so late, but I actually managed to do the dumps.
This is the programm I used to debug

/**
 * New node file
 */
var hello="hello"
  , name= "atx";


var main = function(){
    var message = hello + " " + name;
    message += "!";
    console.log(message);
};

main();

Here is the dump with Node.js v 0.11.14:
https://drive.google.com/open?id=0BxGw_84VTLLfNy1NQzViN29qemM&authuser=0
which works as expected.

Here is the dump with io.js 1.0.1:
https://drive.google.com/open?id=0BxGw_84VTLLfZldzY1MwMGxKemc&authuser=0
which doesnt show the variables.

As you are moving with the speed of light as I tested it io.js 1.0.3 was available via ivm...
https://drive.google.com/open?id=0BxGw_84VTLLfMzF1eWwxNkV0eW8&authuser=0
This version actually works again :D

BUT I stumbled on another problem with io.js and debugging via eclipse: eclipse is only able to start/debug an io.js application once. After the first run, it won't start any other due to "Connection refused"... What i figured out is, that node.js stops after the example code finishes. io.js doesn't stop and has to be stopped forcefully.

clumsys-mbp:~ atx$ which node
/Users/atx/.nvm/v0.11.14/bin/node
clumsys-mbp:~ atx$ /Users/atx/.nvm/v0.11.14/bin/node --debug-brk=5858 /Users/atx/Documents/workspace/iojsDebug/server.js 
Debugger listening on port 5858
hello atx!
clumsys-mbp:~ atx$ ll /usr/local/bin/iojs 
-rwxr-xr-x  1 atx  admin    15M 20 Jan 17:28 /usr/local/bin/iojs
clumsys-mbp:~ atx$ /usr/local/bin/iojs --debug-brk=5858 /Users/atx/Documents/workspace/iojsDebug/server.js 
Debugger listening on port 5858
hello atx!
^C
clumsys-mbp:~ atx$ /usr/local/bin/iojs -v
v1.0.3

META:
where did you expected i would have put the dumps? As I just learned it is not possible to attach files to an issue...

@indutny
Copy link
Member

indutny commented Jan 20, 2015

So it works? Yay! :) Could it be that eclipse is searching for node process and is failing to find it?

Regarding the dumps, I thought about email, but whatever works for you! Sorry for not making it explicit.

@ataraxus
Copy link
Author

Okay, I will investigate this further, but I think this ticket can be closed

@indutny
Copy link
Member

indutny commented Jan 20, 2015

Oh, ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants