|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Conditional Compilation Directives
The following directives modify the default behavior when compiling code for debugging.
|@debug||Turns on or off the emission of debug symbols.|
|@position||Provides meaningful position information in error messages.|
These directives are provided for developers designing code that is automatically included into JScript programs by host environments (such as ASP.NET.). The code included is generally of no interest to authors who write scripts to be run in that environment. When these authors debug their code, they only want to see the parts of the program that they wrote rather than their code and additional parts that their development tool wrote.
These conditional compilation directives can "hide" code by turning off the emission of debug symbols and resetting the line position. This allows script authors to see only code they write when debugging a script.