home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource.old
/
13_5.tcl
< prev
next >
Wrap
Text File
|
2003-04-15
|
224b
|
14 lines
#
# Example 13-5
# Getting a trace of the Tcl call stack.
#
proc Call_Trace {{file stdout}} {
puts $file "Tcl Call Trace"
for {set x [expr [info level]-1]} {$x > 0} {incr x -1} {
puts $file "$x: [info level $x]"
}
}