Another good thing is to setup MySQL error logging in the control panel. That way, when users get errors it will log them. You can view these via the CP or if the site isn't working at all, you can FTP into your site and view the errors.