To
debug AIR applications with the Flash Debugger, start an FDB session
and then launch your application using ADL.
Note: In SWF-based AIR applications, the ActionScript source files
must be compiled with the -debug flag. (In Flash
Professional, check the Permit debugging option in the Publish Settings
dialog.)
Start FDB. The FDB program can be found in the bin directory
of the Flex SDK.
The console displays the FDB prompt: <fdb>
Execute the run command: <fdb>run [Enter]
In a different command or shell console, start a debug version
of your application:
adl myApp.xml
Using the FDB commands, set breakpoints as desired.
Type: continue [Enter]
If an AIR application is SWF-based, the debugger only controls
the execution of ActionScript code. If the AIR application is HTML-based,
then the debugger only controls the execution of JavaScript code.
To run ADL without connecting to the debugger, include the -nodebug option:
For basic information on FDB commands, execute the help command:
<fdb>help [Enter]
For details on the FDB commands, see Using the command-line debugger commands in
the Flex documentation.