[mypage::header "Tcl Server Info"]

Status
[StatusMenu]

Debugging
<p>
This server has the interesting ability to reload parts of its implementation
dynamically. This lets you add features and fix bugs without ever
restarting.
It is even possible to setup a debug session with TclPro.
This is made possible with the help of the /debug URL. The debug module 
has e.g. several useful URLs that let you examine variable values and other internal state.

The /debug URLs are:

/debug/source?source=<value>&thread=<value>

/debug/package?package=<value>

/debug/pvalue?aname=<value>

/debug/parray?aname=<value>

/debug/raise?args

/debug/after

/debug/echo?title=<value>&args

/debug/errorInfo?title=<value>&errorInfo=<value>&no=<value>

/debug/dbg?host=<value>&port=<value>

/debug/showproc?showproc=<value>

/debug/disable

For more specific information about the calls see the debug module.
<p>
Some examples:
<p>

<p>

<p>

<p>

TclPro
It is also possible to debug tclhttpd with TclPro.
Briefly you have to perform following steps:

Enable the tclhttpd server for debugging (see httpdthread.tcl).

Setup a Project in TclPro with Debugging Type "Remote Debugging";
define the portnumber; start TclPro by calling

http://yourserver:port/debug/dbg?host=<hostname>&port=<portnumber>

The tclhttpd server will connect to a TclPro Session running on host <hostname>
listening for remote connections on port number <portnumber>

In case TclPro is running on the "localhost" listening for the default portnumber "2576"
it is enough to call

http://yourserver:port/debug/dbg

[mypage::footer]
