You start a debugging session by using the fdb command-line debugger. After you start a session, you typically type continue once before you set break points and perform other debugging tasks. This is because the first frame that suspends debugging occurs before the application has finished initialization.
For more information about which commands are available after you start a debugging session, see Using the command-line debugger commands.
You can start a debugging session with the stand-alone debugger version of Flash Player. You do this by compiling the application into a SWF file, and then invoking the SWF file with the fdb command-line debugger. The fdb debugger opens the debugger version of the stand-alone Flash Player.
The debugger version of the stand-alone Flash Player runs as an independent application. It does not run within a web browser or other shell. The debugger version of the stand-alone Flash Player does not support any server requests, such as web services and dynamic SWF loading, so not all applications can be properly debugged inside the debugger version of the stand-alone Flash Player.
Debug with the stand-alone Flash Player
The following example compiles an application with the mxmlc command-line compiler:
mxmlc -debug=true myApp.mxml
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.
You can also open fdb with the JAR file, as the following example shows:
java -jar ../lib/fdb.jar
(fdb) run c:/myfiles/fonts/EmbedMyFont.swf
The fdb debugger starts the Flex application in the debugger version of the stand-alone Flash Player, and the (fdb) command prompt appears. You can also start a session by typing fdb filename.swf at the command prompt, rather than by using the run command.
You can start a debugging session in a browser. This requires that you pre-compile the SWF file and are able to request it from a web server.
mxmlc -debug=true myApp.mxml
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.
You can also open fdb with the JAR file, as the following example shows:
java -jar ../lib/fdb.jar
(fdb) run
This instructs fdb to wait for a player to connect to it.
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