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

Re: Debug problems


  • Subject: Re: Debug problems
  • From: nicolas berloquin <email@hidden>
  • Date: Mon, 13 May 2002 17:38:46 +0200

what type of optimization do you have ? if you have > 0, the execution can seem to be "random" because
of the way the compiler rearranges things to gain speed/space.
check the edit-active-target command in the project menu...

On Monday, May 13, 2002, at 05:07 , Quentin Mathi 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
}

}
}

--
Quentin Mathi
email@hidden
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Debug problems
      • From: Quentin Mathé <email@hidden>
References: 
 >Debug problems (From: Quentin Mathé <email@hidden>)

  • Prev by Date: Re: Hiding superclass methods
  • Next by Date: Re: Debug problems
  • Previous by thread: Debug problems
  • Next by thread: Re: Debug problems
  • Index(es):
    • Date
    • Thread