Skip navigation
Currently Being Moderated

[svn:fx-trunk] 12548: Fix FB-16879: FDB print # no longer works.

Dec 4, 2009 2:54 PM

Revision: 12548

Revision: 12548

Author:   mmoreart@adobe.com

Date:     2009-12-04 12:36:58 -0800 (Fri, 04 Dec 2009)

Log Message:

***********

Fix FB-16879: FDB print # no longer works.  You're welcome Alex

 

It's tricky to handle "print #1234" now, because we now use asc's parser to parse the expression ("#1234"), and that is not a legal ActionScript expression.  To hack around this, we now detect "#" followed by one or more digits, but only at the very beginning of the expression.  If we see that, we replace it with "$obj(1234)".  $obj() is a new pseudofunction handled by the FDB, which evaluates to the object with id 1234.

 

This means you can do any of these:

 

   print #1234

   print #1234.

   print #1234.toString()

   print $obj(1234)

   print someFunction($obj(1234))

 

but you can't use the "#" syntax anywhere except at the very beginning of an expression -- this won't work:

 

   print someFunction(#1234)

 

Ticket Links:

***********

    http://bugs.adobe.com/jira/browse/FB-16879

 

Modified Paths:

**************

    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concret e/PlayerSession.java

    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/express ion/ASTBuilder.java

 

More Like This

  • Retrieving data ...

Bookmarked By (0)