Chapter 13. Reflection and Debugging
This chapter describes commands that give you a view into the interpreter. The history
command and a simple debugger are useful during development and debugging. The info
command provides a variety of information about the internal state of the Tcl interpreter. The time
command measures the time it takes to execute a command. Tcl commands discussed are: clock
, info
, history
, and time
.
Reflection provides feedback to a script about the internal state of the interpreter. This is useful in a variety of cases, from testing to see whether a variable exists to dumping the state of the interpreter. The info
command provides lots of different information about the interpreter.
The clock
command returns the time, formats ...
Get Practical Programming in Tcl and Tk, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.