Bug 559752

Summary: breakpoints get incorrectly moved after some edits
Product: [Eclipse Project] JDT Reporter: james tomkinson <jamestomk>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: sarika.sinha
Version: 4.14Keywords: bugday, test, ui, usability
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
URL: https://www.dropbox.com/s/o0xgcsa2cej1rwk/breakpoint_moved.PNG
Whiteboard:

Description james tomkinson CLA 2020-01-31 10:31:49 EST
I often find my breakpoint moved one or more lines after editing, perhaps after a paste operation.   this is especially impacting if:
- from a if-then-else "then" clause to the "if" clause
- from try-catch "catch" clause back into the "try" clause.
if the clause contains older, complex break condition code, it is especially difficult to correct.

Ignoring the obvious comment that this shouldn't happen,

If would be nice to have a feature where I could either:
- drag a breakpoint to a new line
- cut/paste a breakpoint to a different line
- edit the breakpoint to change the line


image: https://www.dropbox.com/s/o0xgcsa2cej1rwk/breakpoint_moved.PNG

-- Configuration Details --
Product: Eclipse IDE 4.14.0.20191212-1200 (org.eclipse.epp.package.jee.product)Installed Features:
 org.eclipse.jdt 3.18.200.v20191210-0610
Versioning Plugin:
 org.eclipse.platform 4.14.0.v20191210-0610
Comment 1 Sarika Sinha CLA 2020-02-02 23:25:34 EST
Can you please provide exact snippet to reproduce because if edits lead to a non executable statement, a breakpoint can jump to next valid statement.
Comment 2 james tomkinson CLA 2020-05-17 17:26:27 EDT
this should probably be merged or a dup of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=546957
Comment 3 james tomkinson CLA 2020-05-17 17:26:46 EDT

*** This bug has been marked as a duplicate of bug 546957 ***