![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveretrieving line number in case of error - "simple debugger"
From: Nicolas Castagne <castagne@imag.fr>
Date: Thu Sep 29 2005 - 17:30:51 CEST
Hi all,
I will use tcl within a C/C++ application in order to execute scripts
I would need to display basic information to the user in case an error
My two question are :
In order to explain which point I have reached so far, here is a rather
Suppose the script is :
1 if 1 {
The error is on line 3.
When evaluating this script, however, the error line registered by Tcl
If, in the C master application, I write something like :
result = Tcl_EvalEx(tclInterp, script, length, TCL_EVAL_GLOBAL);
the output will be "ERROR line 1".
Basically, I am unable to retrieve the error line within the nested
Thanks for reading, and waiting for answer !
Dr Nicolas Castagne
|