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: Don Porter <dgp@email.nist.gov>
Date: Thu Sep 29 2005 - 17:57:33 CEST

Nicolas Castagne wrote:
> My two question are :
> 1/ Given a script, how can I retrieve the exact line on which the error
> occured ?
> 2/ Do you know a nice HOWTO or code sample for building basic debug
> features ?

I started to answer, then discovered the details later in your
article that you know all the answers I was about to give.

Please copy that example into the Tcl Feature Request Tracker
where I can more carefully look into it over time. The details
involve enough time and effort that articles here will expire.

I suspect this is a limitation of the bytecode compiler, but
possibly something we can improve.

-- 
| Don Porter          Mathematical and Computational Sciences Division |
| donald.porter@nist.gov             Information Technology Laboratory |
| http://math.nist.gov/~DPorter/                                  NIST |
|______________________________________________________________________|
Received on Sat Oct 15 03:53:39 2005