• 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: Usage of .gdbinit to automate xcode gdb configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Usage of .gdbinit to automate xcode gdb configuration


  • Subject: RE: Usage of .gdbinit to automate xcode gdb configuration
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Fri, 30 Jan 2004 11:13:06 -0500

In your XCode project, bring up the Breakpoints window.  Click on New
Breakpoint.  Type -[NSException raise].

You'll have to do this for each project, but only once.

Jonathan


> Forgive me for the basic question, but I'm not a gdb expert...
> I'd like to have "break on NSExceptions" turned on by default... I see
> the XCode Debug menu has an option for break on C++ exceptions, but no
> option for Obj-C exceptions...
>
> Typing:
> b [NSException raise]
> in the gdb console drawer has the runtime behavior I want, but I don't
> want to type it every time I run my app in the debugger. I made a
> ~/.gdbinit text file with that simple line "b [NSException raise]" as
> the only contents, but it doesn't seem to affect gdb's behavior, nor do
> I see any indication in the gdb console drawer view that the init
> script has been run (even when I put obvious garbage into the .gdbinit
> file, hoping to see an error message)
>
> Question:
> Is the .gdbinit file the right approach for this?
> If so, where must the file be placed so gdb will read it? How can I
> know that the file is actually being read at gdb startup?
>
> Thanks for any answers or pointers!
>
> --
> Tim Gogolin
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Usage of .gdbinit to automate xcode gdb configuration (From: Tim Gogolin <email@hidden>)

  • Prev by Date: Re: Usage of .gdbinit to automate xcode gdb configuration
  • Next by Date: (no subject)
  • Previous by thread: Re: Usage of .gdbinit to automate xcode gdb configuration
  • Next by thread: Re: Usage of .gdbinit to automate xcode gdb configuration
  • Index(es):
    • Date
    • Thread