Version: (using KDE Devel) Installed from: Compiled sources OS: Linux How to reproduce: Set a breakpoint in main - works OK. Compile and debug - execution stops at breakpoint - OK. insert a new dummy function in front of it - breakpoint icon moves with main - OK (but line number in breakpoints tab is wrong) Compile and debug - a new breakpoint shows up in the new function. Execution is not stopped in main.
Created attachment 275 [details] Snapshot that shows both breakpoints Here it is possible to see both breakpoints, the one on line 21 is the one I want. But the one on line 17 is the one I got. There is NO breakpoint on line 21 - see breakpoint tab - the icon is stale.
Also a repeat of Bug 52788 part #8
IMHO the bug is not the Breakpoint, which doesn't change it's line, 'cause all other IDEs i know do it the way that the breakpoint doesn't change the line, when inserting new lines or deleting lines in the code. The bug is imho that the breakpoint icon changes its position, while the breakpoint remains at the right position(you can even remove it at its old position, although the icon is somewhere else).
Think usability! If I have ten breakpoints in a file and add a few lines before those - then I have to re-set all ten... I am not really interested in having a breakpoint at a specific source file line. I want to have my breakpoint on a specific statement! MS Visual C++ 5.0 moves the breakpoints if you insert lines.
Subject: kdevelop/src CVS commit by amantia: Move the breakpoint when new line is added/removed in the document. CCMAIL: 49732-done@bugs.kde.org M +61 -7 debugger.cpp 1.8 M +8 -4 debugger.h 1.7