I wrote a brief overview of what WP_DEBUG is, what it is used for, and you might use that along with some basic display and logging for erro