Re: Stepping over
Re: Stepping over
- Subject: Re: Stepping over
- From: Jeffrey Walton <email@hidden>
- Date: Mon, 28 Jan 2013 02:31:28 -0500
On Mon, Jan 28, 2013 at 2:14 AM, Juggler Shu <email@hidden> wrote:
> 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...)
Out of curiosity, do you have trouble even with -g3? -g3 is maximum
debug information, and the resulting debug information should include
things like macros and #defines. I don't believe they are included
under -g2.
Are the files in a system location? I know I can't step libraries I
build if I install them in, for example, /usr/local (even with dSYMs).
Of course, this applies to GDB. I'm not sure what behavior you should
expect un lldb (http://lldb.llvm.org).
Jeff
> (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