Re: Debug problems
Re: Debug problems
- Subject: Re: Debug problems
- From: Brian Webster <email@hidden>
- Date: Mon, 13 May 2002 11:04:18 -0500
I have had problems in Project Builder where the line that is
highlighted is not actually the same line that's being
executed. It seems the indexing can get confused and be off by
some number of lines. So, when you put the breakpoint on the
first if statement, you're actually stopping at the while
statement or the second if statement, and it's evaluating to
false and jumping down to the end brackets. I haven't figured
out exactly what causes it, so you might try rebuilding your
index, cleaning the project, and resetting the breakpoints to
see if that fixes things.
On Monday, May 13, 2002, at 10:21 AM, cocoa-dev-
email@hidden wrote:
Many times, when I try to debug it's impossible because the debugger
jumps from one line to another farther without reasons. For
example with
the code below, the debugger stops at the first line (there is a
breakpoint), and then when I click "Step over" or "Step into" jumps at
[NSThread exit] (but this line doesn't seem to be executed)...
if ([userDefaults boolForKey:showPackageContentKey]) { //
Breakpoint here
while (filename = [enumerator nextObject]) {
if (threadToKill == YES) {
threadToKill = NO;
[NSThread exit]; // line where the debugger jumps from the first one
}
}
}
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.