[Laszlo-dev] (How) should the debugger distinguish dynamic properties?
P T Withington
ptw at pobox.com
Wed Sep 24 04:30:29 PDT 2008
I was thinking that it might be helpful to distinguish dynamic
properties of instances from their 'fixed' properties in the
debugger. In particular, we've run into a number of situations where
old code is using `in` or `for ... in`, which will only see dynamic
properties. If when inspecting an instance, there were a way to tell
whether a property of the instance was dynamic or not, it might shed
light on why your `in` test is not working.
Is this a worthwhile distinction to make? If so, how should it be
indicated? I was thinking that fixed properties might be prefixed by
'/' and dynamic/enumerable properties by '.'. E.g.:
> lzx> Debug.inspect(«<LzDebugWindow>»)
> «<LzDebugWindow>#23» {
> /_events: [LzEvent, LzEvent, LzEvent, LzEvent, LzEvent, LzEvent,
> LzEvent, LzEvent]
> /_height: 381.15000000000003
> ...
> /initstage: 'immediate'
> .inspectDel: «<LzDebugWindow>#23».Function()/* handles
> «LzGlobalMouseService#34| {onclick: LzDeclare…».onmousedown */
> /isinited: true
> ...
This shows that `inspectDel` is a dynamic property, whereas the other
properties are fixed. Is this worthwhile? Or just too much noise?
More information about the Laszlo-dev
mailing list