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



Thanks for answer.

The example will be copied in Source Forge tomorrow.

Well, I conclude that as I thought, things are not that easy.

Let me open the topic, then.

Tcl is widely used to let end-users write scripts that impact a big C/C++ application.
I myself currently develop a sort of modeler for physical models, that will involve both a GUI and a Tcl-based end-user language.


The Tcl-based language will let the user decribe the model, by calling C routine that will build the model in memory (hope it is clear enough).
The scripts will be written within a text canvas holded by the GUI, and interpreted through a TclInterp ran by the GUI.


I really think that such a use of Tcl is not rare at all.

The general problem is then :
Given the fact that the end-user is not a technician, one need to offer him basic and 'usable' debug facilities.


Now, the general question :
- what are the 'debug' facilities developpers usually offer to their non-technician end-users ?
- how are they built ?


I am quite sure that a large, large knowledge and knowhow is available on that question. But i can't find it (in the wiki, the archives, the tips, etc.)

All the best !
Nicolas

Don Porter wrote:
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.

.



Relevant Pages

  • Re: problems with apps communicating with each other (was Re: Whats TCL related to?)
    ... > Svenn Are Bjerkem wrote: ... this is not a tcl problem is it? ... Synopsys where Tcl/Tk is used as the command language. ... I use code-browser on windows to do tcl scripts. ...
    (comp.lang.tcl)
  • Re: executing a configure script from a tcl scrip
    ... I am having problem to launch the configure script from tcl. ... When working on windows I get the "can't find ... I never compiled Tcl on windows but I do know that configure scripts ... what program you run a Command Window will popup. ...
    (comp.lang.tcl)
  • Re: ANNOUNCE: Tcl/Tk 8.5.0 RELEASED
    ... The Tcl Core Team is pleased to announce the 8.5.0 releases of the Tcl ... Tcl/Tk 8.5.0 sources are freely available as open source from the Tcl ... A summary of the new features visible to Tcl scripts in the Tcl/Tk 8.5 ... Add a Command ...
    (comp.lang.tcl)
  • ANNOUNCE: Tcl/Tk 8.5.0 RELEASED
    ... Tcl/Tk 8.5.0 Release Announcement ... The Tcl Core Team is pleased to announce the 8.5.0 releases of the Tcl ... A summary of the new features visible to Tcl scripts in the Tcl/Tk 8.5 ... Add a Command ...
    (comp.lang.tcl)
  • Speeding up recursive directory traversal
    ... I wrote test scripts and here are ... PHP SUMMARY ... Tcl SUMMARY ... set tail ...
    (comp.lang.tcl)