• 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: Xcode 2.0 debugger problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Xcode 2.0 debugger problem


  • Subject: re: Xcode 2.0 debugger problem
  • From: George Warner <email@hidden>
  • Date: Tue, 10 May 2005 09:59:57 -0700

On Tue, 10 May 2005 13:47:31 +0200, Davide M <email@hidden>
wrote:

> After successfully using Xcode 1.5 to build c++ projects for a while
> (using Qt libraries from trolltech) I upgraded to Tiger and Xcode 2.0.
>
> Now the debugger behaves very strangely: when stopped at a breakpoint
> the "Step over" does not work as expected, most times it does the
> same as the "Continue" button, but sometimes it jumps to a random
> place a few lines down in the source.
>
> I tried recreating the whole project from scratch, and doing a full
> clean/rebuild, but nothing changed.

The most common cause of this is having optimization on. It should always be
-O0 (off) for debugging otherwise you get out-of-order execution, register
reuse, etc. all which make the code run faster but confuse the debugger.

--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)


 _______________________________________________
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

  • Prev by Date: re: Local variables not displayed in debugger
  • Next by Date: Re: "'char' type is unsigned" seems to be broken
  • Previous by thread: Re: Xcode 2.0 debugger problem
  • Next by thread: XCode/xcodebuild problems...
  • Index(es):
    • Date
    • Thread