Re: debugger problems
Re: debugger problems
- Subject: Re: debugger problems
- From: Alexander von Below <email@hidden>
- Date: Sun, 14 Oct 2007 13:54:16 +0200
First thing to do: Check if all code optimizations are disabled for
debug builds
Alex
Am 14.10.2007 um 13:41 schrieb H M:
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 .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?
--
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
_______________________________________________
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