Name

cmdtrace

cmdtrace level [noeval] [notruncate] [procs] [fileId] [command cmd]

Print a trace statement when commands are executed at depth level (1 being the top level) or at all levels if the level is specified as on.

Options

noeval

Cause arguments to be printed before being evaluated.

notruncate

Turn off truncation of output, which normally occurs when a command line is longer than 60 characters.

procs

Enable tracing of procedure calls only.

fileId

Cause output to be written to an open file identifier.

command

Rather than producing normal output, the given command is executed during tracing.

cmdtrace off

Turn off all tracing.

cmdtrace depth

Return the current trace depth level, or 0 if tracing is not enabled.

Get Tcl/Tk in a Nutshell 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.