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: debugger problems




On Oct 14, 2007, at 1:41 PM, H M wrote:

Help! my debugger has gone haywire.

I have the following code:

- (NSString *)AngleToDegMin:(double)angle { // converts 51.5º to 51º30'
double h, m;
BOOL neg = NO;
h = angle;
NSLog(@"%f",angle);
if (h < 0) {
h = -h; // <- breakpoint
neg = YES;
}
m = h;
NSLog(@"%f",m);
h = (int)h;
m -= h;    // <- breakpoint
m *= 60;
NSLog(@"m = %f",m);
if (neg) {
h = -h;
}
NSString *result = [NSString stringWithFormat:@"%d %05.2f ", (int)h, (int)m];
return result;
}

when I build and debug, it runs to the second breakpoint, ignoring the first, and then i click step over, and it just continues as if i had clicked continue. other times it stops somewhere in that method (not necessarily on a breakpoint) and when I click step over, instead of going to the next line, it just jumps to a random line. how am i supposed to do anything useful when the debugger behaves like this?

is there anything I can do to make it behave?

i remember receiving a mail form this list saying "if it makes you feel any better, my debugger goes crazy a lot of times a day also..."
appreciated that very much, what also helps is doing a thorough clean (i trash my 'build' folder and everything else tmp i can find) and reboot

i also take a deep breath from time to time...and what alexander said is true also, watch out for this -O stuff


-- 
GPG Key ID: 92AD877F7E4E32B9
Fingerprint: 16B0 7DCD 3AB0 0C45 F5FD  581D 92AD 877F 7E4E 32B9


_______________________________________________
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

--
met vriendelijke groeten
perry winkel
www.perry7.nl

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

This email sent to email@hidden

References: 
 >debugger problems (From: H M <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.