On 25/09/14 07:30, Walter Bright wrote:

There's more than that, but yeah. Most of my types I'll write a "pretty
printer" for, and use that. No conceivable debugger can guess how I want
to view my data.

With LLDB you can implement your own custom formatters [1]. For example, in Xcode, Apple have added for Objective-C a formatter for NSImage. Within Xcode you can hover a variable of the type NSImage and it will show a small window with the image rendered.

Perhaps it's time to look at some modern alternatives and not be stuck with GDB ;)

[1] http://lldb.llvm.org/varformats.html

--
/Jacob Carlborg

Reply via email to