tcltrace-procs.tcl

Tcl trace procs, accompanied by tcltrace-init.tcl Add Tcl execution traces to asserted Tcl commands

Location:
packages/acs-tcl/tcl/tcltrace-procs.tcl
Created:
2015-06-11
Author:
Gustaf Neumann <neumann@wu-wien.ac.at>
CVS Identification:
$Id: tcltrace-procs.tcl,v 1.7 2024/09/11 06:15:48 gustafn Exp $

Procedures in this file

Detailed information

tcltrace::before (private)

 tcltrace::before [ -details ] cmd op

Generic trace proc for arbitrary commands. Simply reports calls to function (optionally with full context) to the error.log.

Switches:
-details (optional, boolean, defaults to "false")
when set, use ad_log for reporting with full context
Parameters:
cmd (required)
the full command as executed by Tcl
op (required)
the trace operation

Testcases:
No testcase defined.

tcltrace::before-ns_log (private)

 tcltrace::before-ns_log cmd op

Execute this proc before ns_log is called

Parameters:
cmd (required)
the full command as executed by Tcl
op (required)
the trace operation

Testcases:
No testcase defined.

tcltrace::before-ns_return (private)

 tcltrace::before-ns_return cmd op

Execute this proc before ns_return is called. This proc saves the request in a file, which can be later used for validating the returned HTML. This works as well for admin pages, which can not be validated via web based HTML validators without giving away admin privileges.

Parameters:
cmd (required)
the full command as executed by Tcl
op (required)
the trace operation

Testcases:
No testcase defined.
[ show source ]