Re: Dereferencing Pointers in Debugger?
Re: Dereferencing Pointers in Debugger?
- Subject: Re: Dereferencing Pointers in Debugger?
- From: Enrique Zamudio <email@hidden>
- Date: Wed, 6 Jun 2001 23:39:40 -0500
If you have a char * (a c-string) then:
p variable
will give you the address in memory, but I think
p *variable will give you the string.
If you have a NSString object, you can use
po variable
to see the contents of the string. In general, po (short for 'print object'
I think) prints the description of any subclass of NSObject. You can po a
NSDictionary, for example, and get the description with the curly brackets.
Enrique Zamudio Lopez
Chief Software Architect
North American Software
email@hidden
www.nasoft.com.mx