How can I debug expect_before behavior

I'm relatively new to TCL / expect and mostly modifying existing code.
expect_before

doesn't seem to do what I expect (which is good), but I can't figure out how to debug it. I used the parameter -d

and am now using

exp_internal -f "argh.log" 1

      

to create a log file, but it doesn't help me.

expect_before -info

      

seems useful, but I can't capture / display the output (I said I was new to TCL)

+2


a source to share


1 answer


Function results can be captured by waiting with set

set my_expect_before [expect_before -info -all]

      



will grab the current configuration.

The use is exp_internal

also useful to see how expressions are evaluated and once you understand the result - this should be obvious when your expect_before was not set up as expected.

+2


a source







All Articles