Bug 49732 - kdevelop loses track of breakpoints when editing
Summary: kdevelop loses track of breakpoints when editing
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop-Devel List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-26 15:55 UTC by Roger Larsson
Modified: 2003-03-20 09:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Snapshot that shows both breakpoints (9.80 KB, image/png)
2002-10-26 16:01 UTC, Roger Larsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Larsson 2002-10-26 15:55:17 UTC
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.
Comment 1 Roger Larsson 2002-10-26 16:01:36 UTC
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.
Comment 2 Caleb Tennis 2003-02-27 15:10:43 UTC
Also a repeat of Bug 52788 part #8 
Comment 3 Jonas Jacobi 2003-03-19 14:00:47 UTC
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).
Comment 4 Roger Larsson 2003-03-19 15:20:44 UTC
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. 
Comment 5 András Manţia 2003-03-20 09:06:04 UTC
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