You can also use the tcl pro debugger and step through you code.
Farty
Artur wrote:
> Hi Mark!
>
> There is directly no way to obtain this information (so I know it) but
> the interpreter has it. See errorInfo message in some test programm.
> You can read indeed the line of code in called proc. So this info is
> there but
> not accessible in normal case.
>
> Some times ago a have worked on patched Tcl interpreter for
> extended debugging. The problem of line number was also there.
> I have patched Tcl this way that the line of code (in proc not source
> file) was
> stored on internal stack structure and serviced to debug API.
> You will probably need to build your own patched interpreter you can
> use also trace methods. You can use the code of my debugger as base
>
> http://www.xdobry.de/atkdebugger
> see chapter: Programming debugger
>
> Artur
Received on Sun Apr 30 02:18:01 2006