Laxmidi
Laxmidi

Reputation: 2684

Flex 3 How to Inspect value of Object

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

Answers (3)

Alexander Farber
Alexander Farber

Reputation: 22978

import mx.utils.*;
trace(ObjectUtil.toString(myObject));

Upvotes: 1

Kumsal Obuz
Kumsal Obuz

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

Chuck Vose
Chuck Vose

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

Related Questions