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

Bug 527264

Summary: DEL in break point condition deletes the breakpoint
Product: [Eclipse Project] JDT Reporter: Stephan Herrmann <stephan.herrmann>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: sarika.sinha
Version: 4.7.1a   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Stephan Herrmann CLA 2017-11-14 12:33:33 EST
Create a conditional breakpoint, and edit the condition directly in the breakpoint view. When you try to delete a character of the condition, this deletes the breakpoint :(

Seen on Windows as well as on Linux.
Comment 1 Sarika Sinha CLA 2017-11-14 22:51:21 EST
It depends on the focus, If the focus is on the Conditional Editor, it deletes the letter from the editor.
If the focus is on the Breakpoints view, it will delete the breakpoint.
Comment 2 Stephan Herrmann CLA 2017-11-15 07:18:12 EST
Perhaps someone stole the focus from my Conditional Editor?

This reproducibly happens when I move the mouse between different Eclipse windows: I have one window with Variables & Breakpoints, start editing the condition, move to the main Eclipse window (containing editors etc.) then move back to the window containing Breakpoints, and the focus in the editing area is lost. (This is on Linux with focus-follows-mouse).

Another trick: invoke content assist to insert a method with parameters. This probably puts the editor into linked mode (waiting for call arguments), and now DEL deletes the breakpoint. Interestingly, this creates a state, where typing still goes into the editor, but DEL does not.
Comment 3 Sarika Sinha CLA 2017-11-16 02:14:12 EST
Yes I was able to reproduce it. Unless you select the cursor out of parameter position, Del deletes the breakpoint. Once you select something else and then again if you select inside parameter position, Del has the editor context and works ok.
Comment 4 Eclipse Genie CLA 2020-04-13 08:07:56 EDT
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.