Odd expect debug behavior -- Followup




Followup:

I found the problem. Its a known issue in version 5.43.

Does anyone know if there is a patch available?

-T


On Jun 6, 9:56 pm, gamename <namesagame-use...@xxxxxxxxx> wrote:
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


.



Relevant Pages

  • Re: multithreaded application freezes
    ... >>> with puts. ... >>> Could you give me some strategy how to debug this. ... >>> in a single thread and it feels that it running longer. ... >>> This is the first time in 10 years a TCL application bites me hard ...
    (comp.lang.tcl)
  • Re: How to overwrite standard puts method
    ... Robert Klemme wrote in post #950193: ... timestamp and maybe thread id because puts itself only accepts message ... Whenever I need to debug an ant build I use option -d (debug, ... Unfortunately buildR trace is not as useful as ant trace. ...
    (comp.lang.ruby)
  • Re: switches
    ... | to print out what was in the variable char 'c' and get strange ... switch ... puts; ... puts ("debug 1"); ...
    (comp.lang.c)
  • Odd debug behavior
    ... I've used expect's debug facility some time ago with no problem. ... puts "foo" ... puts "bar" ...
    (comp.lang.tcl)
  • Re: Sorting Array?
    ... ok 81 debug} ... puts "$key: $lang" ... no such element in array ... % lsort -integer [array names lang] ...
    (comp.lang.tcl)