Version 5 of Favorite debugging techniques applicable to Tcl

Updated 2004-12-23 15:40:06 by suchenwi

Frank Pilhofer's Reload, Refresh, ..., David Welton's endless reloads, Jeffrey Hobbs' use of "fresh" tkcon tabs [L1 ], as well as Keith Vetter's console resets [L2 ] ...

A minimal debugger ...


RS routinely puts into Tk-provided scripts under development these two lines:

 bind . <Escape> {exec wish $argv0 &; exit}
 bind . <F1> {console show} ;# Windows only

With an interactive console, the following shortcut is often helpful:

 interp alias {} ? {} set errorInfo

Another little helper to display canvas x/y coordinates in the title bar:

 bind .c <Motion> {wm title . %x/%y}

Category Debugging