MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Use Manual page 89

Table of Contents

Advertisement

If you want, enter one or more traces in the ActionScript and set a breakpoint on the line
2.
immediately following the trace.
For example, you might enter the following trace (shown in bold type) in your ActionScript
file:
5 ...
6 function myFunc()
7 {
8
trace("Inside my function");
9
btn.label="OK";
10 }
11 ...
If you set a breakpoint at line 9 (
should display the item "Inside my function" when Flex Builder stops at the breakpoint.
Switch to the project's application file (the file with the
3.
the debugger by doing one of the following:
Press Alt+F6.
On the Document toolbar, click the Debug button.
Select File > Debug.
Select File > Debug in Browser, and select a browser.
On the Output panel in the Results panel group (Window > Results), click the Play button
on the sidebar and select Debug > Debug in Flex Builder.
On the Network Monitor panel in the Results panel group (Window > Results), click the
Play button on the sidebar and select Debug > Debug in Flex Builder.
A dialog box appears asking you if you want to upload dependent files. Dependent files include
any ActionScript file, MXML file, or image file referenced in the file.
If copies of dependent files such as images or other files are not already located on the testing
server, select Yes in the Dependent Files dialog box.
Flex Builder will upload most dependent files to the testing server. The server compiles the
MXML application file using the files on the server. If a dependent file is missing, then the
application file may not compile or may not run properly.
Note: Flex Builder may not upload all dependent files. For more information, see
dependent files" on page
The Flex server attempts to build the project. If the build is successful, Flex Builder switches to
debug mode and the ActionScript executes up to the first breakpoint and stops. If you set a
breakpoint in an event handler, you must trigger the event in the application to reach the
breakpoint.
After reaching a breakpoint, Code view becomes read-only and debugging information appears
in some of the Results panels.
btn.label="OK";
87.
) and start the debugger, the Output panel
<mx:Application>
Testing and debugging Flex files
root tag) and start
"Uploading
89

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex builder

Table of Contents