Re: I can't step into any message of Objective-C object
Re: I can't step into any message of Objective-C object
- Subject: Re: I can't step into any message of Objective-C object
- From: Jeffrey Oleander <email@hidden>
- Date: Sat, 29 Mar 2008 20:28:57 -0700 (PDT)
> Chan-gu Lee <email@hidden> wrote:
>> 2008. 03. 30, ì¤ì 11:33, Jeffrey Oleander ìì±:
>>> Chan-gu Lee <email@hidden> wrote:
>>>> 2008. 03. 30, ���� 12:30, Shawn
Erickson wrote:
>>>>> On Sat, 2008 Mar 29, at 06:44, Chan-gu Lee
<email@hidden> wrote:
>>>>> I have some code to debug, and I need to trace it.
>>>>> However, when I tried to step into message call to
>>>>> Objective-C, Xcode does step-over.
>>>>>
>>>>> Here is an example code.
>>>>>
>>>>> int new_number = [[m_TextField stringValue]
>>>>> intValue] ;
>>
>> What happens when you insert introspection
>> method(s) here?
>>
>> if ([m_MyData
>> respondsToSelector:@selector(setNumber:)])
>> {
>> // dosomething
>> }
>>
>>>>>>> [m_MyData setNumber:new_number] ;
>>>>> }
>>>>>
>>>>> '>>' means current pc counter.
>>>>> When I do step-into m_MyData::setNumer here, Xcode
>>>>> just go to the next line, not to the entry point of
>>>>> setNumber.
>>>>
>>>> Is m_MyData nil?
>>>>
>>>> -Shawn
>>
>>> Thanks for your reply.
>>>
>>> However, m_MyData isn't nil. It's a valid object.
> I inserted code fragment, and tested as you suggested.
> The return value of [m_MyData
> respondsToSelector:@selector(setNumber:)] is YES,
> and the codes in block of if statement work well.
Very good. So, we have additional confirmation that it's
definitely not nil, and we have reason to suspect there's
some effect from optimization.
What happens if you set a break-point inside setNumber?
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
_______________________________________________
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