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

Bug 322924

Summary: [expr] Focus gets lost periodically while typing a watch in the Expressions view
Product: [Eclipse Project] Platform Reporter: Daniel <daniel.segall>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: pawel.1.piech, remy.suen, zulliger
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Daniel CLA 2010-08-17 12:10:39 EDT
Build Identifier:  20100617-1415

If you are typing an expression in the Expressions view (debug watches) while stopped at a breakpoint, the focus gets lost every time Eclipse gets an update to one of the values of an existing watch.  This causes everything you were typing to get lost -- very annoying when typing complicated watch expressions.

It's easier to reproduce with a very large number of watch expressions, especially if there are a lot of expressions that take longer to evaluate, like nested function calls.

Reproducible: Always

Steps to Reproduce:
1. Add about 15-20 watches to the Expressions view.  Make sure at least half of them are function calls, preferably nested two or three levels deep.
2. Set a breakpoint somewhere in the code.
3. When the breakpoint hits, try to add a new expression by clicking in the next available row in the Expressions table and typing it in directly.
Comment 1 Pawel Piech CLA 2011-06-08 12:57:48 EDT
That is annoying... would it be acceptable to show an hour-glass after initiating a cell edit and until the view update is finished?  The workaround is to watch the view title (for italics) and wait until update is finished.
Comment 2 Daniel CLA 2011-06-10 08:33:49 EDT
I don't think the hourglass is a good idea because I have seen view updates that literally take minutes to complete.  What about one of these three options, listed in order of preference?

1) Defer the screen update until the user is finished typing.  (This means that you have to finish typing your expression before you will see your other watch values, but this is acceptable -- especially if the alternative is the current behavior.)
2) Take focus away from the cell, but preserve what has been typed up to this point.
3) If a cell edit is initiated while the view is updating, open the "Add Watch" dialog automatically, since the bug will not happen if you enter a watch through the dialog.
Comment 3 Lars Vogel CLA 2019-11-27 07:08:08 EST
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.

If you have further information on the current state of the bug, please add it.
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.

If the bug is still relevant, please remove the stalebug whiteboard tag.