• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dereferencing Pointers in Debugger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)


References: 
 >Dereferencing Pointers in Debugger? (From: Michael Rogers <email@hidden>)

  • Prev by Date: Re: Fear
  • Next by Date: Re: Fear
  • Previous by thread: Re: Dereferencing Pointers in Debugger?
  • Next by thread: Re: Dereferencing Pointers in Debugger?
  • Index(es):
    • Date
    • Thread