Debugging Tips and Tricks

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.

  1. gimp-message (or use display [if GIMP run from command line])
  2. tracing
  3. console and cut/paste