First you'll need to get get the source code. Once you have a working copy you need to enable debugging using the following configure option.
At execution time, you must enable the debug messages. To enable the debug messages, set the environment variable for the section you want to debug or set "EV_DEBUG" to enable debug messages for all sections.
The following sections are available:
EV_DEBUG_JOBS=1 evince document.pdf