Reputation: 2684
I'm debugging a problem and I've got:
o = URLUtil.stringToObject(browserManager.fragment);
When I try to put an alert on the var o, I get [object] [object]
.
How do I find out its value?
Upvotes: 0
Views: 557
Reputation: 22978
import mx.utils.*;
trace(ObjectUtil.toString(myObject));
Upvotes: 1
Reputation: 825
From Actionscript reference :
var myObject:Object = {firstName:"Tara", age:27, city:"San Francisco"};
for (var prop in myObject) {
trace("myObject."+prop+" = "+myObject[prop]);
}
/*
myObject.firstName = Tara
myObject.age = 27
myObject.city = San Francisco
*/
Upvotes: 1
Reputation: 4580
How about monster debugger? De MonsterDebugger It's beautiful and handy.
I was going to write out instructions but really this page is awesome: Instructions
Upvotes: 1