Specifications
CHAPTER 12
250
You can also compile an application SWF file by using the web-tier compiler or the Flex Builder compiler. For
more information on Flex compilers, see “About the Flex compilers” on page 125.
2 Create an HTML wrapper that embeds this SWF file, if you have not already done so. For more information
on creating a wrapper, see
“Creating a Wrapper” on page 311.
3 Copy the SWF file and its wrapper files to your web server.
4 Find the flex_install_dir/bin directory. You installed the Flex application files to this directory.
5 Type fdb in the command line. The fdb prompt appears.
You can also open fdb with the JAR file, as the following example shows:
java -jar ../lib/fdb.jar
6 Type run at the fdb prompt:
(fdb) run
This instructs fdb to wait for a player to connect to it.
7 In your browser, request a wrapper that embeds the debug SWF file. Do not request the SWF file directly in a
browser because some browsers do not allow you to run a SWF file directly.
Alternatively, you can type run filename.html at the command line, and fdb launches the browser for you.
The filename should include the entire URL; for example:
(fdb) run http://localhost:8100/flexapps/index.html
Configuring the command-line debugger
You can configure the current session of the fdb command-line debugger using variables that exist entirely within
fdb; they are not part of your application. The configuration variables are prefixed with $.
The following table describes the most common configuration variables used by fdb:
To set the value of a configuration variable, you use the set command, as the following example shows:
(fdb) set $invokegetters = 0
For more information on using the set command, see “Changing data values” on page 256.
Variable Description
$invokegetters
Set to 0 to prevent fdb from firing getter functions. The default value is 1 (enabled).
$listsize
Sets the number of lines to display with the list command. The default value is 10.










