testdtcl(1)

testdtcl1

Usage

testdtcl [-i] [-g globalscript] file

Testdtcl

testdtcl - program to test and debug .ttml files

Overview

Testdtcl may be used to test out .ttml pages intended for use with the Apache mod_dtcl module, without having to use a web server. It includes the same file parsing code, so it ought to yield similiar results. The testdtcl program also has an option, -i that allows the user to see what global variables have been modified in which portions of the execution (does it occur in the Dtcl_GlobalScript, or the main script itself?).

Options

-i

Turn on "info", or debugging mode. This prints out a list of the global variables that have been created both by the "GlobalScript" and by the script called by testdtcl.

-g globalscript

Load "globalscript" as the script that would be loaded by the GlobalScript directive in mod_dtcl.

Examples

testdtcl -g /var/www/globalscript.tcl -i examples.ttml

This runs testdtcl with /var/www/globalscript.tcl as the globalscript on the file "examples.ttml". The -i command tells it to output information about global variables changed.

Files

/usr/lib/mod_dtcl/infodebug.tcl

Contains the Tcl routines to gather information about global variables.

/usr/lib/mod_dtcl/testdtcl.tcl

Contains replacements for the mod_dtcl extensions to Tcl, namely: hputs, include, setcookie, hflush, hgetvars, and dtcl_info.

Author

This manual page was written by David N. Welton <[email protected]>.

From libapache-mod-dtcl 0.7.3-2 in Debian 2.2 (Potato). Parsed by carta from the page's man source.