"dcjava" <webforumsuser@macromedia.com> wrote in
message
news:ggp5uu$ndd$1@forums.macromedia.com...
> I have a Flex Demo application that I'm trying to debug.
There is a
> variable
> defined as follows:
>
> var itemToUpdate:XMLList
>
> If I add a trace statement as follows, I'm able to see
the value of the
> quantity displayed in the Console:
>
> trace(itemToUpdate.qty); <-- This works!
>
> But if I add a "Expression" in the debugger like this:
> "itemToUpdate.qty".
> I get the following value displayed in the "Expressions"
debugging view:
> "<errors during evaluation>".
>
> What am I doing wrong? Why can't I add watch expressions
for an XMLList
> type?
>
> Version: Flex 2.01

As Amy pointed out, the flex watch debugger can't evaluate
e4x expressions, you can however assign the value to a string and
watch the string. This won't allow you to change the e4x value on
the fly if that is your goal but it's still useful for just seeing
what gets assigned without setting breakpoints and manually digging
through the list of properties for the value you want. If you're
evaluating a single xml node and you want to see the whole xml make
sure to use the .toXMLString() method.

"ctzn99" <webforumsuser@macromedia.com> wrote in
message
news:ggpj60$9e1$1@forums.macromedia.com...
> As Amy pointed out, the flex watch debugger can't
evaluate e4x
> expressions, you
> can however assign the value to a string and watch the
string. This won't
> allow you to change the e4x value on the fly if that is
your goal but it's
> still useful for just seeing what gets assigned without
setting
> breakpoints and
> manually digging through the list of properties for the
value you want.
> If
> you're evaluating a single xml node and you want to see
the whole xml make
> sure
> to use the .toXMLString() method.

You can also use ctrl+f in the Variables window to find
specific variables.
You have to make sure that the category you expect to find it
in is
expanded, but this helps find variables more quickly without
"digging."