Script Name:
debug.tcl
Version: 1.0.1
Author: arfer
Script Date: 30/11/2007
Category: Not specified
Downloads: 54
File Name:
debug.1.0.1.zip
Short Description:
Uses changes to the existing global namespace Tcl variable errorInfo to output, to a preconfigured IRC bot channel, a full trace on any errors as and when they occur, emanating from any Tcl script loaded on the bot.
Extended Description File
This script uses changes to the existing global namespace Tcl
variable errorInfo to output, to a preconfigured IRC bot
channel, a full trace on any errors as and when they occur,
emanating from any Tcl script loaded on the bot. This script
is expected to profer some improvement on simply using
.set errorInfo in the partyline in that it should output a trace
on consecutive errors and not just the last one to have occured.
Each tcl error will generally write to the variable
errorInfo several times as the error is unwound.
This script intelligently isolates the last such variable change
per any single error which then contains the full trace.
It provides more information than the minimal Tcl error that is
displayed in the partyline by default and, as such, is primarily
intended as a tool to aid script authors in determining
the root cause of errors. This script may also prove more
generally useful in allowing users to more completely report
errors to their respective script authors.