3 ms·
Which versions did you use? With modern Tcl (8.6) you get exact line numbers: $ tclsh test line 1 line 2 line 3 error here while executi
by pwg 6y ago
Which versions did you use? With modern Tcl (8.6) you get exact line numbers:
$ tclsh test
line 1
line 2
line 3
error here
while executing
"error "error here""
(procedure "test-error" line 5)
invoked from within
"test-error"
(file "ttttt" line 9)
Where the contents of "test" were:
$ cat -n ttttt
1 proc test-error {} {
2 puts "line 1"
3 puts "line 2"
4 puts "line 3"
5 error "error here"
6 puts "line 4"
7 }
8
9 test-error
Line 5 and line 9 match up exactly.
- RicoElectrico 6y agoHuh. You're right. I use 8.6. I guess then it's the "feature" of apps that I use which embed Tcl. Maybe I will file a ticket because it's frustrating as hell when we had to port scripts from one program's scripting system to its successor. Thankfully interns were at our disposal ;)