Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse hangs while debugging

I searched lot about this topics but can't find a proper solution.

I am using eclipse 3.6 Helios version with operating system fedora15. In my application I am using GWT2.4 for front end development.

Now while I work with debug mode and want to debug at some point at the same time eclipse hangs for 3-4 mins.It resumes after and again start to debug process.

I am using this eclipse from last 3 years with windows but not faced this issue.In fedora I am using it from last 4 months and this problems stated to occur from last one month.

I am not getting what is the issues with eclipse. Please help me out. Thanks in advance.

like image 918
Sanjay Jain Avatar asked Dec 09 '11 08:12

Sanjay Jain


People also ask

How do I fix debugging in Eclipse?

A Java program can be debugged simply by right clicking on the Java editor class file from Package explorer. Select Debug As → Java Application or use the shortcut Alt + Shift + D, J instead.

How do I get out of loop while debugging?

Pressing ctrl+R is the correct option but if your break point is on a line which is inside the for loop, then you will have to first remove the break point and then press ctrl+R on the line on which you want the control to land. I faced this issue while debugging.

Can we go back while debugging in Eclipse?

Yes, Eclipse CDT has support of historical debugger feature. Open Debug Configuration -> Debugger -> Enable Reverse Debugging at startup . Than you can press shift+F5 or shift+F6 for step back like F5 or F6 for step forward.

What is F6 and F8 in debug on Eclipse?

F6 = Step Over = Go to the next codeline; if next line is a method, don't go inside of it. F7 = Step Out = process code in the same method and stop in the invoking method. F8 = Reumse = continue to next breakpoint.


2 Answers

Is this something that happens with different projects/code, or is it the same code that causes freezes? I've had issues where threads have started in the background and caused problems.

You say "(...) hangs for 3-4 mins.It resumes after and again start to debug process.", what do you mean? Does it continue to debug and move to the next line, or is there a crash and it restarts?

How long has it been since you changed workspace? I've found this, rather than the Eclipse installation, to be an issue over time. Create a new workspace folder, export all your projects and preferences and start fresh.

like image 175
Fredrik Avatar answered Oct 09 '22 21:10

Fredrik


You are using GWT 2.4 and I think you might be working with UI.xml too... There is a tag in each ui.xml at the top like

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">

Which means eclipse is going to get that xhtml.ent file each time and there is a issue in GWT eclipse plugin have a look to below link

http://code.google.com/p/google-web-toolkit/issues/detail?id=5265

There is one comment which says

For me, removing 
SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"
and saving the document, 
solves the problem.. 
maybe it is needed for something, so better you copy that locally somewhere, and link that.

Try it out and let me know.

like image 39
Ashfak Balooch Avatar answered Oct 09 '22 23:10

Ashfak Balooch