Recent

Author Topic: Popup window value in Hex  (Read 540 times)

440bx

  • Hero Member
  • *****
  • Posts: 5559
Popup window value in Hex
« on: May 06, 2025, 07:14:26 pm »
Hello,

I believe (maybe incorrectly) that there was a way of telling the debugger to display values in hex in the little popup window that appears when hovering over a variable but, I have forgotten the setting that makes it happen.

That's the question: how do I tell the debugger to display values in hex in the popup window that appears when hovering over a variable ?

Thank you for your help.
 
ETA:

Added a snapshot of the debugger pop up window.
« Last Edit: May 06, 2025, 07:42:38 pm by 440bx »
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11433
  • Debugger - SynEdit - and more
    • wiki
Re: Popup window value in Hex
« Reply #1 on: May 06, 2025, 09:01:44 pm »
You need Lazarus 4.0 (or 4.99)

Tools > Options > Debugger > Display Format.

From the tabs/buttons in the top row chose: "Hints"
Then configure the "number" section as you like.


440bx

  • Hero Member
  • *****
  • Posts: 5559
Re: Popup window value in Hex
« Reply #2 on: May 06, 2025, 09:22:09 pm »
You need Lazarus 4.0 (or 4.99)
I'm currently using v4.0rc3 (will eventually switch to 4.0 final or some other later release.)

Tools > Options > Debugger > Display Format.

From the tabs/buttons in the top row chose: "Hints"
Then configure the "number" section as you like.
Just in case someone else is interested, it was necessary to restart Lazarus, just clicking "Apply" was not sufficient but hex values were shown after restarting Lazarus.

Now, I have another question: I noticed that there is a "Number" and "Number (2nd)" in General and also in Hints.  Setting either one provided the display in Hex.   My question is: what's the difference between setting it in "General" instead of "Hints" ?

Thank you Martin, it's great to have the values displayed in hex. :)
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11433
  • Debugger - SynEdit - and more
    • wiki
Re: Popup window value in Hex
« Reply #3 on: May 06, 2025, 09:32:13 pm »
Just in case someone else is interested, it was necessary to restart Lazarus, just clicking "Apply" was not sufficient but hex values were shown after restarting Lazarus.
That would be a bug.... (Confirmed)... More work


Quote
Now, I have another question: I noticed that there is a "Number" and "Number (2nd)" in General and also in Hints.  Setting either one provided the display in Hex.   My question is: what's the difference between setting it in "General" instead of "Hints" ?

Number (2nd) means that the number is displayed in both formats.


General is the base setting for all displays (hints, watches, locals, ...). It is used, if there is no other setting.

For Hints, it first checks the
- project settings: display format hints
- global settings: display format hints
- project settings: display format general
- global settings: display format general

For watches it will start in the watch properties, then go through a similar search.

Further more display formats can be controlled by "value formatters" too. Which will be checked first. (in the order from project, then global)


440bx

  • Hero Member
  • *****
  • Posts: 5559
Re: Popup window value in Hex
« Reply #4 on: May 06, 2025, 09:47:26 pm »
Thank you Martin.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11433
  • Debugger - SynEdit - and more
    • wiki
Re: Popup window value in Hex
« Reply #5 on: May 06, 2025, 10:46:02 pm »
Just in case someone else is interested, it was necessary to restart Lazarus, just clicking "Apply" was not sufficient but hex values were shown after restarting Lazarus.
That would be a bug.... (Confirmed)... More work

Fixed

440bx

  • Hero Member
  • *****
  • Posts: 5559
Re: Popup window value in Hex
« Reply #6 on: May 06, 2025, 10:48:23 pm »
Fixed
I was just about to ask you if you wanted me to create a ticket for that bug when I got the message that there was a new post.

Great, I'm rather pleased it's fixed.  Thank you Martin.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018