Specifications
351ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
Customizing error output
You can select the number of lines of code to show in the browser before and after an error or warning. You do
this in the Configuration screen of the installer.
The default value is 1. The value can be any nonnegative integer. If you set the value to 10, the compiler displays
10 lines of code before and after the location of a syntax error when the error is displayed in the browser.
If you want to change the number of lines after you have installed the web-tier compiler, you set the value of the
lines_in_context property in the compiler.conf file. The following example sets the value to 10:
lines_in_context=10
You can disable warnings by setting ?warnings=false in the request string.
For more information on editing the compiler.conf file, see “Configuring the web-tier compiler” on page 345.
Using the web-tier compiler log files
The web-tier compiler generates its own set of access and error log files. The compiler writes to these log files in
the /logs subdirectory of the module installation directory:
• module_install_dir/logs/access.log
• module_install_dir/logs/error.log
The access log records the date, time, and path for each MXML file that the web-tier compiler compiles. The
following is an example of the access log file after the file MyBasicProject.mxml was compiled repeatedly:
[2007/03/02 16:13:08]C:/Documents and
Settings/knizia/workspace/MyBasicProject/MyBasicProject.mxml
[2007/03/02 16:13:24]C:/Documents and
Settings/knizia/workspace/MyBasicProject/MyBasicProject.mxml
[2007/03/02 16:13:47]C:/Documents and
Settings/knizia/workspace/MyBasicProject/MyBasicProject.mxml
[2007/03/02 16:13:57]C:/Documents and
Settings/knizia/workspace/MyBasicProject/MyBasicProject.mxml
[2007/03/02 16:15:32]C:/Documents and
Settings/knizia/workspace/MyBasicProject/MyBasicProject.mxml
The error log records the date and time of any errors, plus the line of code that triggered the error, and the line
number. The following is an example entry in the error log file:
[2007/03/02 16:15:34] [/MyBasicProject] error: Attribute name "s" must be followed by the
' = ' character. @ 11
The error log records only the line of code that triggered the error and not any lines of code above or below it,
regardless of the value of the
lines_in_context property.










