I found the problem. Its a known issue in version 5.43.
> Hi,
> I've used expect's debug facility some time ago with no problem.
> Recently, I've switched over to a Fedora 6 environment and I'm running
> into problems with it. Here is a sample app called "tst.tcl" to
> illustrate:
> #!/usr/bin/expect
> puts "foo"
> debug 1
> puts "bar"
> When I run it, I get the following:
> tjfc6:~$> tst.tcl
> foo
> 1: puts "bar"
> dbg1.0> tjfc6:~$
> Rather than stopping at the "debug 1" point, execution continues until
> the app completes. The behavior I've seen on other platforms is to
> halt at the debug statement and allow interactive commands. I am
> using expect version 5.43.0.
> Anyone have any ideas what's going on?
> Thanks,
> -T