There are three ways to
turn on debugging:
From the webAppend the debug code to your URL. The debug code is set in album.cfg (debug_code) and is simply "debug" by default. This method will turn on debug mode for your session only. (Other users will not see debug output.) Example:
http://perl.cdnarmy.ca/cgi-bin/album.pl?debug=4If your URL already has variables appended to it, you'll need to use & instead of ?. See the notes in the next bullet to determine which debug level to use (1-4).
In album.plYou can edit album.pl directly. Search for the lines like these and update the $debug variable as needed:
# Set debug level:
# 0 = None
# 1 = Special - Nothing has this code, so you can add a ,1 to any debug statement to make it stand out on it's own
# 2 = Standard - No recursive info or detailed file info. Usually just startup info.
# 3 = Detailed - Some recursive and detailed info.
# 4 = Overwhelming - Everything that ever had a debug turned on.
$debug=0;Remember to remove it when you're done, as this will turn debug mode on for all visitors.
In album.cfgAdd a line like "debug=4" to the end of your album.cfg, and set $debug to equal whichever level you want to see. Remember to remove it when you're done, as this will turn debug mode on for all visitors.