Re: Dereferencing Pointers in Debugger?
Re: Dereferencing Pointers in Debugger?
- Subject: Re: Dereferencing Pointers in Debugger?
- From: David P Henderson <email@hidden>
- Date: Wed, 6 Jun 2001 16:57:29 -0400
On Tuesday, June 5, 2001, at 06:37 , Michael Rogers wrote:
Is there anyway to dereference pointers in the debugger? I'd rather
see "Hello, world" rather than 0x6170, for instance.
If your pointer is an Obj-C object, use print object in the debugger
console like so:
print object myObject
or shorthand
po myObject
you can also use the po command on Obj-C messages like so:
po [myObject someMessage] # where someMessage has an object for a return
value
For more info, read the gdb docs in either HelpViewer or your favorite
web browser; look for them in /Developer/Documentation/DeveloperTools/
Dave
--
Chaos Assembly Werks
"A lie can run around the world before the truth can get its boots on."
- Israel Zangwill (not Edward R. Murrow)