• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Debugging a Movie > Adding Variables to the Watch List

Adding Variables to the Watch List

In any complex Flash movie there will probably be a set of critical variables that you want to keep an eye on. You can monitor critical variables in a controllable way, by marking them to appear in the Debugger panel Watch list. The Watch list displays the absolute path to the variable and its current value, and just like the Variables tab, you can enter a new variable value at any time during the debugging process. If you add a local variable to the Watch list, its value appears only when Flash Player is stopped at a line of ActionScript where that variable is in scope. All other variables appear while the .swf file is playing. If the Debugger can’t find the value of the variable, it will list the value as undefined.

Add Variables

1.
Click the Control menu, and then click Debug Movie.

2.
Click the Variables or Locals tab, and then select a variable.

3.
Click the Debugger Options button, and then click Watch.

4.
Click the Watch tab.

5.
Click the Debugger Options button, and then click Add Watch.

6.
Enter the target path to the variable name and the value in the fields.

IMPORTANT To remove variables from the Watch list, select a variable on the Watch tab, click the Debugger Options button, and then click Remove Watch.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint