Re: retrieving line number in case of error - "simple debugger"
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: retrieving line number in case of error - "simple debugger"

From: Bruce Stephens <bruce+usenet@cenderis.demon.co.uk>
Date: Thu Sep 29 2005 - 18:19:37 CEST

Nicolas Castagne <castagne@imag.fr> writes:

> gwl wrote:

[...]

>> man puts
> MMhh, sorry but I don't get it.
> Do you mean the user should use puts to build its own debug-tool ?

Almost all debugging problems end up with you wanting to know the
value of some variables in a few places, and you can find that out by
inserting a few puts statements in the code.

(It's not always true, of course, but very often that's the case: you
speculate what the problem might be, and adding a few puts statements
tells you whether you were right or not. And since Tcl is
interpreted, doing that's often no slower overall than using a
debugger would be.)
Received on Sat Oct 15 03:53:40 2005