There are three main techniques one can use when working with Script-Fu scripts that aren't working correctly. The techniques range from the Script-Fu equivalent of using print statements to check variable contents, to tracing script execution, to a more advanced and hands-on approach involving the Script-Fu console and cutting/pasting of Scheme statements.