Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Usage of .gdbinit to automate xcode gdb configuration



Am 30.01.2004 um 16:44 schrieb Tim Gogolin:

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?

Just typ 'fb [NSException raise]'. This stands for 'forward-break'.


Re Phil _______________________________________________ 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.