Debug or view static variables in Flash Builder 4

Problem:

When I set a breakpoint and debug my application, Flash Builder 4 does not display static variables in the variable window. I can not find a solution in other posts.

More details:

I use flash builder 4 to run flexible module tests on one of my AS3 classes. I set a static variable in the [Before] function, which is accessed in each of the tests.

I set a breakpoint in one of the tests to understand why it fails, but I notice that static variables do not appear when I expand the 'this' object in the variable window. (In this case, my static variable is the only variable associated with the class, so the only object in the variables window is the "this" object).

Question: Does anyone know how to make static variables appear in the variables window?

Thank,

Cookies

+5
source share
3 answers

True, the Variables panel displays non-static variables in scope.

, "", ... . YourClass.staticVariable , , .

, .

Visual Studio. " " , ... , VS , , , FB. , , "".

:)

+7

, . ( ), , "Flex" " ".

!

+5

I am on Flash Builder 4.7 and none of the answers of K0j0 and Brian Genicio apply. So far, the only way to debug a static variable is to assign it to a local variable (thus, the code had to be modified). Hope the best way to do this is somehow

+5
source

All Articles