Re: Xcode debugger broken with .mm files?
Re: Xcode debugger broken with .mm files?
- Subject: Re: Xcode debugger broken with .mm files?
- From: Sir Rattykins <email@hidden>
- Date: Sat, 21 Feb 2009 08:42:52 +1030
On Sat, Feb 21, 2009 at 6:51 AM, George Warner
<email@hidden> wrote:
On Fri, 20 Feb 2009 20:27:19 +1030, Sir Rattykins <email@hidden>
wrote:
> I cannot get Xcode's debugger to stop at a breakpoint that has been added in
> the IDE. The application execution simply continues as usual, regardless of
> where I add the breakpoints within the code.
Make sure you're not using the stabs debugging file format; switch it to use
ether "dwarf" or "dwarf with dSYM".
Oh George, I heart you long time! Thanks very much for the help.
Changing the build flag "Debug Information Format" to "dwarf with dSYM file" did the trick! The debugger will now find the breakpoint and stop on it. Hooray!
(FWIW, changing the flag to merely "dwarf" does not work.)
The behaviour is a tad flaky; if I move a breakpoint, remove one or add one, I have to also modify the file and then build again to get the debugger to work, but I can work with that.
Possibly unrelated, but... I'm getting a bunch of messages like this in the debug console when gdb is invoked:
warning: Could not find object file "/Users/martin/Documents/Cocoa/safariadblock/safariadblock/trunk/build/Safari AdBlock.build/Release/Safari AdBlock.build/Objects-normal/i386/ABPreferences.o" - no debug information available for "/Users/martin/Documents/Cocoa/safariadblock/safariadblock/trunk/ABPreferences.m".
My username is not martin, I do use AdBlocker in Safari, but not sure why this is affecting my build. I don't include any WebKit stuff (yet). Does anyone have any ideas?
Anyway, thanks again George.
_______________________________________________
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