Another feature idea

1 view
Skip to first unread message

Mat Schaffer

unread,
Feb 26, 2008, 2:54:52 PM2/26/08
to cimlo...@googlegroups.com
If one of the logger.(info,debug...) functions is passed something
that's not a String, try toString(). And if toString() just returns
[object Object] then for each over the items in the object to create a
JSON-style hash of all the keys and values contained in the object.

That would be hotness for debugging :)
-Mat

Kevin Fitzpatrick

unread,
Feb 26, 2008, 3:12:38 PM2/26/08
to cimlo...@googlegroups.com
It doesn't look like Google Code differentiates between a feature
request and a bug report, does it?

- Kevin

Mat Schaffer

unread,
Feb 26, 2008, 3:19:23 PM2/26/08
to cimlo...@googlegroups.com
Not for the end-user anyway, afaik. The administrators can add
keywords that would help to keep things orderly.
-Mat

arpit

unread,
Feb 28, 2008, 3:39:16 AM2/28/08
to cimlogbook
So the bummer here is there is no way to read private properties in
AS3 objects at all. Otherwise printing out the public property names
and their values is easy, but for real debugging I would love to see
the state of the object including private / protected property values.

You could do that in AS2.

Mat Schaffer

unread,
Feb 28, 2008, 8:02:23 AM2/28/08
to cimlo...@googlegroups.com
Public's better than nothing at least. If you know how to do that.
-Mat

Mathur, Arpit

unread,
Feb 28, 2008, 1:06:12 PM2/28/08
to cimlo...@googlegroups.com
In Flex:

import mx.utils.ObjectUtil;

ObjectUtil.toString(object)

prints out all the values.

Reply all
Reply to author
Forward
0 new messages