When I give a non-existent proc to trace, the tclsh locks up. This caused a difficult to debug issue in one of our Tcl-based tools.
Thanks! --Myles
% tclsh
>trace add execution puts leave foo
while executing
"puts -nonewline [string range $txt 0 2047]"
(procedure "TclReadLine::print" line 6)
invoked from within
"TclReadLine::print "$res\n""
invoked from within
"if {$code == 1} {
TclReadLine::print "$::errorInfo\n"
} else {
TclReadLine::print ..."
("uplevel" body line 1)
invoked from within
"uplevel \#0 {
# Handle aliases:
set cmdline $TclReadLine::CMDLINE
#
..."
(procedure "TclReadLine::tclline" line 38)
invoked from within
"TclReadLine::tclline"
<hangs here>
^C
|