| Summary: | Breakpoint import creates breakpoints twice | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Anton Leherbauer <aleherb+eclipse> | ||||
| Component: | Debug | Assignee: | Platform-Debug-Inbox <platform-debug-inbox> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | kevin.brem, randy.lowell, sarika.sinha | ||||
| Version: | 4.4 | Keywords: | helpwanted | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
This is not limited to Java exception BPs. It occurs for all types of breakpoints and has been observed for C/C++ breakpoints with the CDT plugin as well. The problem is caused by org.eclipse.debug.internal.ui.importexport.breakpoints.WizardImportBreakpointsSelectionPage.getSelectedMarkers() If the breakpoints selection page is visible, getSelectedMarkers() always creates new breakpoint markers. The breakpoints selection page is visible if the user has clicked on the Next button in the import breakpoints dialog. To reproduce the problem: 1. Create breakpoint entries in the Breakpoints view. 2. Use "Export breakpoints..." to save the breakpoints to a file 3. Open the "Import breakpoints..." dialog 3. Check the checkbox "Update existing breakpoints" 4. Click Next 5. Select all breakpoints and click Finish 6. Stop and restart Eclipse The duplicate markers that were created by getSelectedMarkers() will have been saved and restored when Eclipse stops and restarts. Restoring the duplicate markers create duplicate breakpoint entries in the Breakpoints view. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
Created attachment 247326 [details] Sample export file with 3 Java exception BPs Version: Luna Release (4.4.0) Build id: 20140612-0600 Steps to reproduce: 1) Breakpoints view (empty) > Import Breakpoints... 2) Enter path to attached file jdtexport.bkpt The file contains 3 Java exception breapoints 3) Next 4) Finish -> 3 BPs appear in the BP view (OK) 5) Close and restart Eclipse -> BPs are duplicated in the view Another variant is 4) Deselect all BPs 5) Finish -> no BPs appear in the view (OK) 5) Close and restart Eclipse -> 3 BPs appear in the view or 4) Cancel 5) Close and restart Eclipse -> 3 BPs appear in the view It works as expected if you omit step 3).