autoexpect

I have created an autoexpect script for an installation cd.

The problem is that at a certain point the autoexpect script just hangs

i have tried using conservative mode, putting a 1 second sleep before the
line where it hangs.

Is there any sort of debuging output or how do i get it to switch back to manual input at the problem part of the expect script and then return control to the expect script.

Thanks to anyone who can help in advance