Hi, is there a way to make the Debugger format the contents of memory referenced by a pointer? What I mean is, if I have a BBitmap* for example, in the Variables window it just shows the address. I’d love it if there is a way to show the members of the BBitmap it points to. Is that possible? Or is this a feature the Debugger doesn’t have yet?
Hmm, I have no idea what’s wrong that Debugger doesn’t show the members of a pointer. Here’s a screenshot of how Debugger is supposed to look like with pointers:
It works only if the library or executable providing the object is built with debug information.
This is not the case for libbe and there is no “debuginfo” package provided by Haiku at the moment. So you will have to build a debug version of libbe.so and make sure your application loads it.
To create a debug version of libbe, you have to edit build/jam/UserBuildConfig and add the line (all whitespace is important, including before the last ;):