To help test a client-side script, use trace() statements to monitor each processing point. The output is shown in the Flash Output window (this example is from the Create a Hello World application):
To debug a client-side script, use the Debug menu in Flash to set breakpoints, step into functions, and so forth. You can inspect the state of the script with Windows > Debug Panels.
To test a server-side script, use trace() statements to monitor each processing point. View the output of trace() statements in the Live Log in the Administration Console.
To open the Administration Console, choose Start > All Programs > Adobe > Adobe Media Server 3.5 > Adobe Media Administration Console.
When a client connects to an application on the server, the application is loaded and can be seen in the Administration Console. To load an application directly from the Administration Console, select from the New Instance list of available application names. You can also stop an application or reload it—in either case, all clients are disconnected.
When you edit and save an .asc file, the changes do not take effect until the application is restarted. Use the Administration Console to restart the application, then connect to the application again.
For each application instance, you can observe its live log, clients, shared objects, if any, streams in use, and performance statistics.
The output of the trace() statements in a main.asc file is sent to the following log file:
Where yourInstanceName is _definst_ by default and xx is the instance number, 00 for the most recent log file, 01 for the previous instance, and so on. You can view a log file with any text editor.
While an application is running, you can view the Live Log in the Administration Console. In the Administration Console opens, click View Applications, then Live Log.
To playback streams and inspect data about shared objects, an application must make a special debug connection to the Administration Console.
The availability and number of debugging sessions is set in the AllowDebugDefault and MaxPendingDebugConnections elements of the Application.xml configuration file. By default, debugging is not allowed. To override the debug setting in the Application.xml file, add the following code to an application’s server-side code:
application.allowDebug = true;
Set allowDebug to false before deploying the application.