|
|
||||
![]() | ||||
This makes it easier to debug complex DI scripts. The Level parameter is a positive integer, which can currently have these values:
0: No debugging (default)
1: Echo each interpreted command, as it occurs in the source file
2: First echo the command, then show the way it looks after variables have been expanded
3: Like level 2, but the contents of false.IFstatements are also shown
Example:
<!--.set foo="some string"--> <!--.debug 1--> <!--.echo "<P>foo is \"$foo\"</P>"--> <!--.debug 2--> <!--.if "$foo" eq "not this"--> <!--.echo "Should never get here"--> <!--.endif-->[DEBUG] debug 1
[DEBUG] echo "<P>foo is \"$foo\"</P>"foo is "some string"
[DEBUG] debug 2
[DEBUG] if "$foo" eq "not this"
[DEBUG] IF • "some string" • eq • "not this"
![]()
Home | Directories | Web Email | Calendar | Campus Map | Search | Help
About the College |
Admission |
Academics |
Student Life |
Athletics Copyright © 2000 Mount Holyoke College. This page created by the OIS Operations Group and maintained by Webmaster. Last modified on June 14, 2000. |