paperlined.org
dev > perl > modules > documentation
document updated 12 years ago, on Jan 12, 2012

debugging Expect.pm

$Expect::Exp_Internal is really friggin useful.

It's a little verbose, however. Using these commands to do minimal syntax-highlighting of the log file, using Vim, makes it much easier to scan:

:match ErrorMsg /^spawn id([0-9]\+.*/
:2match MatchParen /^Sending .*spawn id([0-9]\+)$\|YES!!$\|^Spawned .*/

Sending Expect logs to a file

Unfortunately, the only way to capture Expect logging information to a file is to redirect STDERR to a file.