Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 531186

Summary: Breakpoints removed upon formatting code
Product: [Eclipse Project] JDT Reporter: Stas Levin <staslevin>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: loskutov
Version: 4.8   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Stas Levin CLA 2018-02-15 02:01:52 EST
Dear Eclipse,

I'm using the google code formatter for Eclipse, it's configured to kick in upon saving a file. Whenever I save a file the code does indeed get formatted, however, in addition, the process removes all my breakpoints in that file.

Also, this does not seem related to the amount for formatting done, and even if so much as a single line needs formatting all breakpoints in that file still get removed.

Eclipse: 
Version: Oxygen.2 Release (4.7.2)
Build id: 20171218-0600

Google formatter (used as a drop-in):
https://github.com/google/google-java-format/releases/download/google-java-format-1.3/google-java-format-eclipse-plugin-1.3.0.jar
Comment 1 Andrey Loskutov CLA 2018-02-15 02:08:56 EST
Please report this at the google plugin tracker, it is obviously not Eclipse bug.