Mini-faq: how to debug Expect with Tcl

Posted by ericp on 2007-06-07 17:34
OS: All / Any | Product: Komodo | tags: tcl komodo expect
Question: 

While trying to debug an expect program, I get tracebacks referencing functions that start with "DbgNub". What should I do?

Answer: 

Usually this problem can be resolved by running the program with the
tclsh interpreter, not expect, and ensuring the code contains this
line:

package require Expect