Community
Participate
Working Groups
If I set a breakpoint on a line which gets optimized away (beacause of constant folding, dead code elimination, etc.), the break point is ignored as well. In the case below, I want to set a breakpoint on the first statement, to see if I enter the method. I don't want to care if the first statement will be opmitized away or not. ---8<--- public class IgnoredBreakpoint { private static final boolean fgDebug= true; public static void main(String[] arguments) { if (fgDebug) // set breakpoint on this line System.out.println("foo"); System.out.println("bar"); } }
Breakpoint source -> pc mapping is done by JDT/Debug. The information encoded in the classfile attributes should be enough to address this one.
Do not intend to address for 2.0
Dup.
*** This bug has been marked as a duplicate of 1591 ***