Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 14-09-2009
Member
 
Join Date: Sep 2009
Posts: 3
Issue with debugging with Eclipse

Hello everyone,

I am using Windows XP (SP2) on my computer. I have Eclipse version 3.2.2 and Doja 2.5 on it.I am able to compile and execute java applications from Eclipse and they run on the emulator with out any discrepancies.However, I'm having a issue on debugging.When ever i chose Remote java Application and specify host as localhost and port 8000 brings me the error:"Failed to connect to remote VM. Connection timed out". I've evaluated that after I do the Run->Run and look at the windows XP task manager I can see that the doja_g.exe application gets executed. Then executing netstat on cmd I can see that there is a socket listening on IP address 0.0.0.0, port 2800 but nothing happening on port 8000.

Any idea what is going on here
Reply With Quote
  #2  
Old 14-09-2009
Member
 
Join Date: May 2008
Posts: 2,008
Re: Issue with debugging with Eclipse

I guess the issue is in /etc/hosts. Ubuntu places "127.0.0.1 <hostname-you-picked-when-you-installed>" in there by originally. For whatever reason, with this default setup, Ubuntu is unable to report hostname correclty. If you issue hostname -i to get the IP address, it reports a stupid address, not the DHCP'd address, and not even the address of the DHCP host. So the fix is to relate your actual IP address with <hostname-you-picked-when-you-installed> in /etc/hosts.
Reply With Quote
  #3  
Old 14-09-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Issue with debugging with Eclipse

The steps you are using to start the debugger are properly.I'm not sure what's going wrong here, but maybe you could probhe your firewall.On the other hand you should begin the emulator with:doja_g.exe -debugger -debugport 8000 -nosuspend -i appli.jam.This is a manual process.I guess i helped out you some way
Reply With Quote
  #4  
Old 14-09-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: Issue with debugging with Eclipse

The message denotes that your eclipse environment is perfectly allright and your environmental variables are also perfectly fine.This is the trouble at the emulator end(You said that doja_g.exe is running in your task manager. But how you can say that it is running with proper parameters and port.You have specified port in eclipse at one end, But you should also run the remote VM with exact parameters.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Issue with debugging with Eclipse"
Thread Thread Starter Forum Replies Last Post
JIT debugging problem - I've tried everything! Lutrown Windows Software 3 05-04-2012 03:48 AM
Use Of Environment debugging winni Software Development 4 09-01-2011 10:19 PM
What is Script Debugging Aakaar Software Development 3 13-07-2009 10:53 AM
vb.net Debugging Software Aagman Software Development 2 20-04-2009 11:14 PM
Methods of debugging in PHP Ninad23 Tips & Tweaks 1 21-11-2008 02:31 PM


All times are GMT +5.5. The time now is 06:17 AM.