Bug 353101 - List of breakpoints in Breakpoints view is not synchronizes with set breakpoints in editor (Icon border)
Summary: List of breakpoints in Breakpoints view is not synchronizes with set breakpoi...
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: debugger (show other bugs)
Version: 1.7.1
Platform: Mageia RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-23 18:41 UTC by Piotr Mierzwinski
Modified: 2020-08-16 21:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Mierzwinski 2015-09-23 18:41:10 UTC
Initialize breakpoints by setting in editor (click on Icon border) is working correct. The problem appears when user starts to modify the code (when some breakpoints are set already).
Putting several lines of code in place before set of breakpoints made that they are not updated in Breakpoints view, whilst in Icon border are correctly moved. And now, when debugging session has been started, breakpoints from Breakpoints view are used and application is stopped in wrong place.

It's easy to check if breakpoint are set correctly after modifying of code (adding lines). Just enough to click on every set breakpoint in Breakpoints view and compare where cursor is put in editor and where is breakpoint on Icon border.

This is refer to the project in C++ (using Qt). I didn't check other.

Reproducible: Always

Steps to Reproduce:
1. Open in KDevelop some bigger cpp file (several dozen of kilobytes).
2. Set couple of breakpoints (clicking in Icon border).
    For example 5 in places spaced apart with over a dozen lines.
3. Start debug session and after catching first one close this session, back to Code perspective.
4. Between first and second breakpoint put couple of line of code (copy -> paste, or just typing).
5. Compare Breakpoints view and breakpoints set in Icon border (simple recipe above).

Actual Results:  
In Breakpoints view all breakpoints placed after new code have wrong lines number (probably old ones).

Expected Results:  
Line numbers in Breakpoints view should match to all breakpoints set on Icon border (in editor).

I didn't check, but I suppose the same issue will happen in git version of KDevelop, because the most likely there is used the same code to managing breakpoints.
Comment 1 Piotr Mierzwinski 2015-09-23 19:10:32 UTC
Unfortunately some breakpoints in editor (Icon border) in described situation also are moved. :(. Hence after changing of code (adding lines) there is need to review all breakpoints and set them again :/.
Comment 2 Piotr Mierzwinski 2020-08-16 21:38:55 UTC
Seems to be fixed by Bug 424431