Tony
Tony

Reputation: 3409

Eclipse debug stepping not working

I am using Eclipse to develop Java program and I had to downgrade from JRE/JDK 1.7.x to JRE/JDK 1.6.

When I am stepping through and when it calls a new class, I am either getting source not found or not going into the new class. For example,

//Here, it doesn't go to the Another class
MyClass class = new AnotherClass(value1, value2);

Any idea?

Upvotes: 2

Views: 1720

Answers (2)

davidfmatheson
davidfmatheson

Reputation: 3567

In general, things to check:

  1. You have the correct source attached, and, if you're specifying an external directory, at the correct directory level. It will be the directory above the top package of AnotherClass.
  2. If you're attaching source from another project that contains AnotherClass, make sure it was compiled with debugging symbols on.

Upvotes: 0

Ashutosh Jindal
Ashutosh Jindal

Reputation: 18869

When you try going into 'AnotherClass' and get the Source Not Found, there should be an 'Attach Source' button. Try clicking on it, and when prompted choose the project which contains the source for 'AnotherClass'.

Do this even if AnotherClass is in the current project. If it works, kindly let us know and we'll try to figure out what the original problem might be.

Also, your mileage may vary, but try doing the debugging for a brand new project and see what happens ?

Upvotes: 3

Related Questions