Community
Participate
Working Groups
While editing code around an active breakpoint, it's position updated correctly according to the code changes. But if you disable the breakpoint in the breakpoints-view the position jumps back to the old position, regardless of the code in this line. This bug is referenced by: https://bugs.eclipse.org/bugs/show_bug.cgi?id=487998 Follow this steps to reproduce the error: Without starting a debug session and not saving the file at any step. 1.) Use the code snippet bewow 2.) Create a breakpoint on the "if" line 3.) Delete one of the "i++" lines, the breakpoint will move according to the "if" line as expected 4.) Disable the breakpoint by unchecking it in the breakpoints view 5.) Breakpoint is moved back to the "old position". volatile int i = 0; int main(void) { while (1) { i++; i++; if(i > 10000) i = 0; } return 0; }
It doesn't matter if a line is added/deleted, if the breakpoint line is changed both things lead to the same issue.