Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Luna debug slow only up to the very first breakpoint

Reading through Eclipse debug topics I did not find an answer to my specific problem. I wonder if anybody else has seen it. I only experience this since switching to Luna, I used Kepler and Indigo before.

I usually debug Tomcat, but it happens for any one-class test app. When the app hits the first breakpoint, Debug view is shown, then I have to wait 20-30 seconds for the debugger to initialize, and only then is the code line highlighted in the editor. From that point on every break is immediate. Other kind of slowness is not experienced. In Tomcat any subsequent request stops quickly. The problem is that it's restarted often when hot code replacement is not feasible.

Anybody knows how to tweak it? There is no building or validating process going on at that time, and I tried to allocate various amounts of memory to Eclipse. -Xms256m, -Xmx2048m usually works very well for me.

like image 917
Laszlo B Avatar asked Aug 01 '14 08:08

Laszlo B


People also ask

Why breakpoints are not working in Eclipse?

The solution was to enable it again, start a debug session, the breakpoint is hit and shown in the UI, then disable again the option. There is also another simpler way that will make Eclipse show the debugging highlight at the breakpoint or rather refresh the debugging UI to work as it should.

How do I skip breakpoints in eclipse?

Eclipse define one command "skip all breakpoints", but no "enable all breakpoints". We can just change "skip all breakpoints" command to "toggle all breakpoints". Now we can map "toggle all breakpoints" to shortcuts and use it to enable and disable all breakpoints.

How do you skip breakpoints?

Shortcut to delete all break-points: CTRL + SHIFT + F9 .


2 Answers

Clearing all breakpoints worked for me too. Probably it was because of that breakpoint in jar files it would be taking more time for generating line numbers for those files.

like image 95
user2963838 Avatar answered Nov 11 '22 18:11

user2963838


I don't know how to tweak it, but in experiencing the same problem I found an Eclipse bug ticket already created for this along with duplicates: 440470 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=440470).

Starting Eclipse with "-consolelog -debug" hasn't showed any additional errors related to this.

I am working with a large core Java project and have also installed EMF (Eclipse Modeling Framework) and GEF (Graphical Editor Framework) plugin packages and dependencies via update site. I have installed these in previous versions of Eclipse without the debug delay issue. I tried closing this project and created a new test project with a simple Java class. There was no delay when debugging this class.

like image 29
jspring Avatar answered Nov 11 '22 17:11

jspring