Debugging Tools used by a Tcl programmer
Dear friends
What are the variable name used in Tcl? List debugging tools used by Tcl Programmer?
Thanks
Dear friends
What are the variable name used in Tcl? List debugging tools used by Tcl Programmer?
Thanks
The variable names that could be used in TCL should start with a letter and then have a mix of numbers and letters and an underscore if necessary (alphanumeric). If you are familiar with older versions of TCL then you may have used :: but in version 8.0 that :: is already restricted.
Some of the debugging tools used by TCL programmers are:
interactive mode – to see where the error was triggered
puts command – gives feedback at the right places within the code. This is what most TCL programmers use
Global variable watch and control – shows the values of global variables
set magic – you can write your own set command because TCL has no reserved words
Minimal stepper – to check what a Tk application is doing in a loop
Static code checking – to read TCL code and try to find out if real or potential problem
Dynamic code checkers – many programmers are dissatisfied with this
Other tools are Tkinspect, TkCon, Guarded Proc, Source Navigator, Nagelfar, RamDebugger
Â
Here are some of the debugging tools that are available to Tcl programmers:
This is an example of a very minimal switchable debugger:
proc dputs args {puts stderr $args} ;# on
proc dputs args {}Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ;# off (RS)
The learn more about the complete explanation on the other debugging tools.