Recent

Author Topic: Show in debugger PPoint and PRect types as normal numbers  (Read 1688 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
Show in debugger PPoint and PRect types as normal numbers
« on: January 28, 2021, 02:48:46 pm »
PRect var is shown
- in the tooltips (floating on mouse hover over source editor)
- and in Call Stack
as $fff980475938.... hex number, can you show the Rect's numbers instead?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: Show in debugger PPoint and PRect types as normal numbers
« Reply #1 on: January 28, 2021, 04:13:30 pm »
In the tooltip it should show the values. It does here (both fpdebug and gdb / using dwarf-2 for gdb).
To be exact, it shows the pointer, and then below that the deref in the tooltip.

In the stack  (and locals) that is not yet possible.
gdb will not do this anyway.
For fpdebug some sensible rule (or config) needs to be done when to auto-deref.
It may make sense for a PRect or PPoint (assuming the user code has not redefined those to something else).
But in the stack, deref a pointer to a structure with 100 elements, not so useful (unless we get a way more intelligent stackview)

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
Re: Show in debugger PPoint and PRect types as normal numbers
« Reply #2 on: January 31, 2021, 02:25:51 pm »
I was using 'dwarf with sets'. Thank you.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: Show in debugger PPoint and PRect types as normal numbers
« Reply #3 on: January 31, 2021, 04:06:42 pm »
I was using 'dwarf with sets'. Thank you.
I generally recommend:
- for gdb based debugging: dwarf with sets   (this is dwarf2 based)
- for fpdebug: dwarf 3

 

TinyPortal © 2005-2018