Recent

Author Topic: FpDebug feature request for Watches window  (Read 1691 times)

440bx

  • Hero Member
  • *****
  • Posts: 5137
FpDebug feature request for Watches window
« on: April 29, 2024, 09:26:57 pm »
Hello,

Whenever the "Expression" column cannot accommodate the full width of a field or variable name, the name is truncated and an ellipsis is there to indicate truncation occurred.

It would be nice if hovering over the truncated name with the mouse would cause a tooltip window to popup underneath the name displaying the full variable/field name.

The attachment shows some truncated fields and currently the only way to see the full field name is to widen the "Expression" column which may not always be a desirable action (it might cause other values on the right to scroll out of sight.)

Thank you for reading.

(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10997
  • Debugger - SynEdit - and more
    • wiki
Re: FpDebug feature request for Watches window
« Reply #1 on: May 01, 2024, 06:25:57 am »
There is a similar request already...

There are a few different ways though.

1) Such a hint could either:
- Depend on the column that the mouse is over, and show either the watch-expression or result
- just show a hint for the current watch (expression + result)

2) In case of column dependent...
- Be a single line hint (like windows explorer file name, or code completion current line). Keep the text in place, but keep displaying it over the other columns, and out of the end of the window...
- wrap the expression over multiple lines


440bx

  • Hero Member
  • *****
  • Posts: 5137
Re: FpDebug feature request for Watches window
« Reply #2 on: May 01, 2024, 07:03:45 am »
I'm not surprised there is a similar request already.  Being able to see the entire field/variable name is useful.

As far as how to implement it, for this particular use, I like the way the code explorer does it.  That is, the whole thing appears in a tooltip window in the same location thus temporarily obscuring the original text.

It would be nice if the code used to implement it in the code explorer could be reused to implement the same feature, the same way, in the Watches window.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018