Is there an easy way of telling the debugger to display a variable as hex for ease of bit-twiddling? I can see that watchpoints have an associated style but it's greyed out here.
Mailing lists / lazarus / 2010-06
Debugger output style
4 messages · 3 people ·
- MMark Morgan Lloyd 2
- GGraeme Geldenhuys 1
- MMartin 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Mark Morgan Lloyd wroteIs there an easy way of telling the debugger to display a variable as hex for ease of bit-twiddling? I can see that watchpoints have an associated style but it's greyed out here.
I asked that same question a few months back. All the greyed out options are not implemented yet. Patches are welcome. ;-)
Is there an easy way of telling the debugger to display a variable as hex for ease of…
Mark Morgan Lloyd wroteIs there an easy way of telling the debugger to display a variable as hex for ease of bit-twiddling? I can see that watchpoints have an associated style but it's greyed out here.
There is a way, but more like a workaround. Doesn't work for locals, put works in Watches window:
Pointer(MyVar)
Btw, if you need spaces in an expression
MyVar and 255
you actually need to quote it by hand:
"MyVar and 255"
Include the quotes in the watches win, and it will work.
Martin wrote 17 lines
Thanks both. I ended up hacking it with a temporary conversion in the code which allowed me to see what I'd done wrong :-)
Getting the missing watchpoint style coded sounds like a tricky job since it would presumably need additions to whatever makes the internal structure persistent, as well as the UI for setting it up and handling the display.
