[ Previous ] [ Contents ] [ Index ] [ Next ]

Debugging ADPs with TclPro

To debug your ADPs with TclPro, follow these steps:

  1. Download and install TclPro from http://www.scriptics.com/tclpro/. Temporary licenses are available.

  2. Copy the prodebug.tcl file from the TclPro distribution to the modules/tcl directory.

  3. Set the EnableDebug parameter in the ns/server/server-name/adp section of the configuration file to On.

  4. Run TclPro and start a "remote project", which puts TclPro into a mode waiting for AOLserver to connect.

  5. Open an ADP file with the ?debug=<pattern> query string in addition to any other query data you may send. AOLserver will then trap on ADP files matching the pattern. For example, you can just use debug=*.adp to trap all files, or you can use debug=someinclude.inc file to trap in an included file.

    To set a breakpoint in a procedure you'll have to "instrument" the procedure either after the debugger traps the first time or with the "dproc=<pattern>" query argument.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.