The eventloop procedure allows you to execute tcl commands with immediate full error reporting. For example:
// This is an invalid command executed before eventloop
% set bla [string len]
wrong # args: should be "string length string"
// This is an invalid command executed after eventloop
%eventloop
Type "exit" to exit the event loop
% set bla [string len]
wrong # args: should be "string length string"
while executing
"string len"
As for proc pp, proc pv, proc pn and proc indent:
user wrote:pp - print proc
pv - print variable
pn - print namespace (with procs, variables and proper indentation)
indent - apply indentation based on open/close braces
You can test them, for example:
% proc bla {a b c} {
set a [expr {$b+$c}]
}
% pp bla
proc bla {a b c} {
set a [expr {$b+$c}]
}