Help Search Campus Map Directories Webmail Home Alumnae Academics Admission Athletics Student Life Offices & Services Library & Technology News & Events About the College Navigation Bar
MHC Home Using the Document Interface

The .DEBUG Command

Syntax: .DEBUG Level=

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 .IF statements 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
Offices & Services | Giving | News & Events | Alumnae | Library & Technology

Copyright © 2000 Mount Holyoke College. This page created by the OIS Operations Group and maintained by Webmaster. Last modified on June 14, 2000.