"info script <filename>" does not work with debugger

Posted by jmg on 2010-03-30 09:41

I found out the root cause of a problem in my code. IMO, it has something to do with the ActiveState debuggers (Komodo or TclDevKit Debugger).
If you run with debugging this TCL script

puts "Before [info script]"
info script XXX
puts "After [info script]"

"info script" does not return "XXX" as it should. (It works fine if you run it without debugging).

Is it a bug, a limitation, or works-as-designed?

ActiveState Staff
Tue, 2010-03-30 09:58

The info command is one of the builtins which are intercepted by the debugger to perform its work.

It seems that the interceptor for info was never updated to handle the case of [info script] getting used to set the name of the script.

Please file this as a bug at http://bugs.activestate.com

jmg | Wed, 2010-03-31 07:30

Bug created