Debugging AIR for TV applicationsYou can debug your AIR application in several ways. The simplest way to uncover application logic issues is to debug on your development computer using ADL. Device simulation using ADLThe fastest, easiest way to test and debug most application features is to run your application on your development computer using the Adobe Debug Launcher (ADL) utility. ADL uses the supportedProfiles element in the application descriptor to choose which profile to use. If more than one profile is listed, ADL uses the first one in the list. You can also use the -profile parameter of ADL to select one of the other profiles in the supportedProfiles list. (If you do not include a supportedProfiles element in the application descriptor, then any profile can be specified for the -profile argument.) For example, use the following command to launch an application to simulate the tv profile: adl -profile tv myApp-app.xml When simulating the tv or extendedTV profile on the desktop with ADL, the application runs in an environment that more closely matches a target device. For example:
However, because ADL runs the application on the desktop, testing AIR for TV applications using ADL has limitations:
Extension directoryThe -extdir parameter allows you to specify the location of the extension code. Use this parameter only with the extendedTV profile. The extension code must be unpackaged. ANE files cannot be used with ADL. Furthermore, the extension cannot include any native code. Use an extension with ADL only if the extension has a stub ActionScript implementation or a simulator ActionScript implementation. For more information, see Developing ActionScript Extensions for Adobe AIR. Control inputADL simulates the remote control buttons on a TV device. You can send these button inputs to the simulated device using the menu displayed when ADL is launched using one of the TV profiles. Screen sizeYou can test your application on different size screens by setting the ADL -screensize parameter. You can specify a string containing the four values representing the widths and heights of the normal and maximized screens. For example: adl -screensize 1024x728:1024x768 myApp-app.xml Trace statementsWhen you run your TV application on the desktop, trace output is printed to either the debugger or the terminal window used to launch ADL. In all cases, the SWF files in the application must be compiled with debugging enabled in order for the runtime to output any trace statements. |
|