I wanna debug very simple code that consists of two simplest classes.
package test.pack;
public class TestClass {
public static void main(String[] args) {
TestClassTwo tc2 = new TestClassTwo();
}
}
==================================================
package test.pack;
public class TestClassTwo {
public TestClassTwo() {
System.out.println(this);
}
}
==================================================
So, when I toggle on breakpoint on inizialization of class TestClassTwo and run debug by [F11] and [F5], I should get into constructor of TestClassTwo. But instead of this breakpoint hits in such place where I don't set any breakpoints. It is shown on this pic
I try this on [Eclipse IDE for Java EE Developers] and [Eclipse IDE for Java Developers], also I download and install last version of JDK from oficial Oracle site.
But there is one limitation is that I should to use Java version 1.7 in my project according to the technical task from business side.
I was trying to use solutions from this topic Debug hit without breakpoint - Eclipse, but it was not helpful.
Next, I attach screenshots that can somehow help solve my problem.
Java library in settings of project
Installed JRE in preferences of Eclipse
System variables in Environment variables