Re: [Q] Breakpoint problem
Re: [Q] Breakpoint problem
- Subject: Re: [Q] Breakpoint problem
- From: Howard Moon <email@hidden>
- Date: Mon, 21 Mar 2011 09:51:21 -0700
Ok, I just found a way to get around it. Instead of just executing a single line of code, I wrote a small global function that increments a meaningless global integer variable, and break on that. That's working, for now at least.
(And yes, I'm in Xcode 3.2.2. I'll try updating later today.)
On Mar 21, 2011, at 9:36 AM, JongAm Park wrote:
> Hello,
>
> Do you use Xcode 3.x?
> From some version of Xcode 3.x, it started to show the problem more often.
> At that moment, Apple just updated Xcode 3.x. minimally while adding new SDKs for iOS.
> There are lots of problems in the source code editors. (I really hate this because early version of Xcode 3.x, was very stable and robust in its features.). The one you mentioned is one, and another annoying was that when you set a break point, source lines are scrolled up or down while debugging.
>
> When this happens, I usually remove all breakpoints at least in the troubled source file, but it is all you did already.
> Then try to insert some dummy lines like NSLog( @"blah" ); Then, I found out that Xcode is confused a little less.
>
> If your problem doesn't disappear still, you should check if you current build setting is "Release", not "Debug".
> I know, I know. It sounds silly. Who will debug "release" build? ( if it is not debugging with some printf() or NSLog() messages.)
> In "Release" mode, compilers do optimization like "instruction re-ordering", then this also happens. ( This is normal. )
> So, just in case ( because I don't have your project file on my hands ), check that also.
>
> I hope this could be helpful.
>
> JongAm Park
_______________________________________________
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