Re: Stepping over
Re: Stepping over
- Subject: Re: Stepping over
- From: Juggler Shu <email@hidden>
- Date: Mon, 28 Jan 2013 16:14:54 +0900
I also have this behaviour.
But isn't it as they intended?
I thought its normal behaviour because it is NS_INLINE and the code
inside the function is expanded when it is called.
Is the debugger supposed to automatically detect if its inline or not?
(Sorry if I'm saying something not making sense...)
Shuichiro Suzuki
(1/28/13 9:39 AM), Rick Mann wrote:
I can't seem to get xcode to step over lines of source in the debugger. It always stops inside inline functions. For example, if I try to step over this line:
[typeSig replaceOccurrencesOfString: @"." withString: @"" options: 0 range: NSMakeRange(0, typeSig.length)];
It stops in the NSRange.h header:
NS_INLINE NSRange NSMakeRange(NSUInteger loc, NSUInteger len) {
NSRange r;
r.location = loc; <-- stops here
r.length = len;
return r;
}
There's a lot of STL in the code I'm working on, and so it stops ALL THE TIME in the headers. Stepping out doesn't do the right thing most of the time. It usually ends up stopped in the headers where the next line of my source invoked an STL method in-line.
But as you can see, it happens for non-STL stuff, too.
_______________________________________________
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