Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Setting gdb Breakpoints for Cocoa Methods

You might find it necessary to set a breakpoint for a Foundation or Application Kit method. This is done by specifying the method name.

In Xcode create a new breakpoint. Type the full method name into the breakpoint like:

- [NSException raise]

or:

+ [NSObject allocWithZone:]

If you are using gdb from a Terminal, you can also set a breakpoint using the command line. In this case, you can simply type the method name, such as raise or allocWithZone:. If more than one class implements the method, gdb will ask you to disambiguate.



< Previous PageNext Page > Hide TOC


Last updated: 2002-11-12




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice