• 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: Interpreting GDB Stack Frames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interpreting GDB Stack Frames


  • Subject: Re: Interpreting GDB Stack Frames
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 01 Jan 2012 12:49:55 -0800

On Jan 1, 2012, at 7:26 AM, Ayers, Joseph wrote:

> I have a program crashing loading a NIB that isn't explicitly specified. The call frame is below From the call frame it looks like it's called in line 8. How do I reveal the name of the nib file?

The code is raising an exception. To catch this in the debugger:
(1) Switch to the breakpoints view in the Xcode 4 navigator
(2) Press the "+" button at the bottom left
(3) Choose "Add Exception Breakpoint…"
(4) Press the Done button in the window that pops up.

Now run your app and it'll stop at a breakpoint when the exception is raised. Select the topmost stack frame that's in your app code, and you can look at the variables. In this case it would be your -showMediaWindow:, and the current line is probably loading a nib whose name you can look at.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Interpreting GDB Stack Frames (From: "Ayers, Joseph" <email@hidden>)

  • Prev by Date: Interpreting GDB Stack Frames
  • Next by Date: Re: Project as aggregation of other projects. Indexing disabling for such project
  • Previous by thread: Interpreting GDB Stack Frames
  • Next by thread: Re: Project as aggregation of other projects. Indexing disabling for such project
  • Index(es):
    • Date
    • Thread