MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Use Manual page 88

Table of Contents

Advertisement

The debugger will only stop at breakpoints set on lines containing the following:
MXML tags containing an ActionScript event handler, such as
click="dofunction()" ...>
ActionScript lines such as those enclosed in an
Before you start, make sure you correctly defined a Flex testing server for Flex Builder, and that
the server is running. Flex Builder relies on the testing server to compile ActionScript and to
obtain information about the state of the application. For more information, see
application in Flex Builder" on page
Note: To use the ActionScript debugger, the debug version of Flash player is required. Flex Builder
installs this version, but it can be overwritten if you install a new version of the player or if you install
another Macromedia product such as Breeze. To reinstall the debug version of the player, see the
Release Notes on the Macromedia website at www.macromedia.com/go/fb_releasenotes/.
The following table provides a quick debugging reference, followed by more detailed information:
To do the following task...
Set a breakpoint
Start the debugger
Step through the ActionScript
Stop the debugger
Remove a breakpoint
To debug ActionScript:
Set one or more breakpoints by doing one of the following in Code view:
1.
Control-click in the gutter beside the ActionScript line where you want the script to stop
executing.
Click anywhere inside the line of code and press Control+Alt+B.
Click anywhere inside the line of code and select Edit > Set Breakpoint.
Right-click anywhere inside the line of code and select Set Breakpoint from the context
menu.
A small dot representing the breakpoint appears in the gutter beside the line.
Note: Before you can set breakpoints in a file in Code view, the file must exist on the hard disk.
Save the file before setting breakpoints.
To remove one or more breakpoints, do one of the following:
To remove one breakpoint, Control-click the breakpoint in the gutter of the file.
To remove all breakpoints in the file, select Edit > Remove All Breakpoints in File.
To remove all breakpoints in internal files, select Edit > Remove All Internal Breakpoints.
Tip: You can also right-click the file and select the Edit options in the context menu that appears.
88
Chapter 3: Creating, Coding, and Debugging Flex Files
<mx:Script>
9.
Perform this action
In Code view, Control-click the file's gutter next to the
line of ActionScript where you want to stop.
Click the Debug button on the Document toolbar or
press Alt+F6.
Click the Continue, Step In, Step Out, and Step Over
buttons on the debugging toolbar.
Click Stop on the debugging toolbar.
In Code view, click the breakpoint in the gutter of the file.
<mx:Button
tag or in an AS file
"Starting a new

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex builder

Table of Contents