re: Xcode 2.0 debugger problem
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