• 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: Debugging Cocoa Apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging Cocoa Apps


  • Subject: Re: Debugging Cocoa Apps
  • From: Chris Ridd <email@hidden>
  • Date: Tue, 03 Dec 2002 15:14:03 +0000

On 3/12/02 2:57 pm, Mike Jackson <email@hidden> wrote:
> When I debug stepping to the next line of code sometimes takes me back a few
> lines instead, or maybe forward a few lines, then stepping again (using the
> PB Gui) might bring me back to the line of code I was on, or it might
> actually go to the next line of code, very inconsistent.
>
> I have never seen something like this when I was coding with java, but like
> I said, this is my first foray into Obj-C. Is this normal or is something
> completely messed up with my Dev Env?

Sometimes compiler optimizations will have that effect, even to the extent
of completely optimizing away lines of code. It is fairly normal for a C/C++
compiler.

Reduce the compiler optimization level and try again!

Cheers,

Chris
_______________________________________________
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.

References: 
 >Debugging Cocoa Apps (From: Mike Jackson <email@hidden>)

  • Prev by Date: Re: Debugging Cocoa Apps
  • Next by Date: RE: Default "transparent" background
  • Previous by thread: Re: Debugging Cocoa Apps
  • Next by thread: Re: Debugging Cocoa Apps
  • Index(es):
    • Date
    • Thread