• 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
debugger problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

debugger problems


  • Subject: debugger problems
  • From: H M <email@hidden>
  • Date: Sun, 14 Oct 2007 12:41:47 +0100

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
  • Follow-Ups:
    • Re: debugger problems
      • From: email@hidden
    • Re: debugger problems
      • From: Alexander von Below <email@hidden>
  • Prev by Date: Re: Re[2]: GCC 3.3 template compile error?
  • Next by Date: Re: debugger problems
  • Previous by thread: Re: Have dylib, want to preserve drag-install
  • Next by thread: Re: debugger problems
  • Index(es):
    • Date
    • Thread