[GRASS-dev] how to debug TCL

Glynn Clements glynn at gclements.plus.com
Tue Sep 18 15:18:48 EDT 2007


tutey wrote:

> I tried to debug a module running in tcl/tk window, following the instructions in doc/debugging.txt. It reads:
> 
> > To debug  TCL code, run (example):
> >
> > GRASS:~> g.gisenv set="DEBUG=1"
> > GRASS:~> d.text.freetype > dtf_tcl.txt

The comments in doc/debugging.txt are misleading. The above won't help
you debug Tcl code, only code which uses C (including hybrid C+Tcl
code, e.g. NVIZ, v.digit).

If you want to debug pure Tcl code, you typically need to add "trace"
commands to the code in question.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list