Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK 4.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Debug following code using command line fdb tool and stop at breakpoint at function closing brace
public namespace svgns = "http://www.w3.org/2000/svg"; private function init():void { var xmlWithNameSpace:XML = <file xmlns="http://MyNamespace"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 20" version="1.1"> <polyline points="1,2 3,4"/> </svg> </file>; var valid1:XMLList = xmlWithNameSpace.*::svg; var valid2:XMLList = xmlWithNameSpace.svgns::svg; var valid3:XMLList = xmlWithNameSpace..svgns::svg; }
Debugger is able to print values of valid1, valid2, valid3 variables. But it is unable to evaluate respective expressions:
fdb> print xmlWithNameSpace.*::svg Unsupported expression Expression could not be evaluated.
As far as I could see is is because lots of evaluate(...) methods of class flash.tools.debugger.expression.DebuggerEvaluator are not implemented. In my example evaluation fails at line DebuggerEvaluator.java:174
public Value evaluate(macromedia.asc.util.Context cx, QualifiedIdentifierNode node) { throw new ExpressionEvaluatorException(ASTBuilder.getLocalizationManager().getLocalizedTextString("unsupportedExpression")); //$NON-NLS-1$ }
Please improve debugger evaluation capabilities.