Debugging Your Test Harness
Debugging Your Test Harness
- Verbosity levels
DejaGnu supports multiple verbosity levelsA typical way is to add puts{} or verbose{} calls to your test harness that display critical data
- Tracing execution
You can use the --strace option to have the execution of commands by the Tcl interpreter be displayedYou can use the --debug option to watch the pattern matching attempts by expect
- Builtin Tcl debugger
DejaGnu also has procedures to dump the data in arrays and variables. It also supports watchpoints and a few other higher level debugging features There is a Tcl debugger built into expect that can be used to set breakpoints, single step, and dump the Tcl execution stack