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

Usage of .gdbinit to automate xcode gdb configuration


  • Subject: Usage of .gdbinit to automate xcode gdb configuration
  • From: Tim Gogolin <email@hidden>
  • Date: Fri, 30 Jan 2004 09:44:06 -0600

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.

  • Follow-Ups:
    • Re: Usage of .gdbinit to automate xcode gdb configuration
      • From: Philip Mötteli <email@hidden>
    • RE: Usage of .gdbinit to automate xcode gdb configuration
      • From: "Jonathan E. Jackel" <email@hidden>
    • Re: Usage of .gdbinit to automate xcode gdb configuration
      • From: Frank Midgley <email@hidden>
  • Prev by Date: Re: Adding dynamic library to application folder
  • Next by Date: [OT] Re: WWDC IS WAY COOL
  • Previous by thread: Re: Adding dynamic library to application folder
  • Next by thread: Re: Usage of .gdbinit to automate xcode gdb configuration
  • Index(es):
    • Date
    • Thread