On Mon, Sep 20, 2010 at 11:39 AM, Antonio Nunes
<devli...@sintraworks.com> wrote:
> On 20 Sep 2010, at 19:27, Seth Willits wrote:
>
>> And Chris explained that properties don't necessarily *have* ivars for you 
>> to look at anyway. If you want to see its value, then you need to run the 
>> print/po command on the gdb command line.
>
> Fair enough. And what I would like to see, is the debugger window in code 
> being smart enough to show the synthesised properties. Any chance of that 
> ever happening?

Did you mean "synthesized ivars"? It is important you be precise.

Automatically showing synthesized properties—or any properties at
all—would be a bad idea, because methods have side effects, and even
calling simple accessors at the wrong time can be detrimental to your
program (remember, the debugger can be stopped anywhere; what if it's
in the middle of updating the method cache in objc_msgSend, and then
you go up a few frames into your own code?).

Automatically showing synthesized ivars is a much safer operation, and
one I too would like to see in the debugger.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to