This is not necessarily the current version of this TIP.
| TIP: | 348 |
| Title: | Substituted 'errorStack' / 'traceback' |
| Version: | $Revision: 1.2 $ |
| Author: | Alexandre Ferrieux <alexandre dot ferrieux at gmail dot com> |
| State: | Draft |
| Type: | Project |
| Tcl-Version: | 8.7 |
| Vote: | Pending |
| Created: | Thursday, 26 February 2009 |
| Keywords: | Tcl, debugging |
This TIP proposes to add a ::tcl::errorStack variable giving a "substituted" traceback similar to Python's or gdb's ones.
The ::errorInfo variable is a valuable tool for debugging; however, it yields mostly static information regarding each level of procedure call, as it only gives the static text (extracted from the source) at the call site. This leads to frustrating situations, like when an error occurs at a deep level of a recursive function, ::errorInfo repeatedly reporting "f $x [foo [bar]]" or similar un-substituted commands. In other languages, the traceback is more useful in that it contains the actual values pa