gk::debug

Debugging facilities

Synopsis

gk::debug console
gk::debug message msg
gk::debug warn msg
gk::debug error msg
gk::debug show type flag
gk::debug timing reset
gk::debug timing checkpoint description
gk::debug timing dump

Description

The gk::debug command provides a variety of debugging and profiling utilities.

The "console" command brings up a debugging console window, modeled after a Smalltalk workspace. This allows interactive access to the application's Tcl interpreter.

The "message", "warn" and "error" commands are used to display various types of messages on standard output. The "show" command is used to control whether or not messages of each type are ignored (the default) or displayed. Note that on Windows and Macintosh, you will need to do a "console show" to see these messages.

Finally, the "timing" command provides a mechanism for doing simple profiling. To profile a block of code, first call "timing reset", and then call "timing checkpoint" at any number of positions throughout the code. When done, call "timing dump" which will output a table containing the amount of time between each checkpoint.


GroupKit Reference Manual. Last updated May 15, 1998 by Mark Roseman.