Where the information is.
THE ERROR LOG
cPanel, Errors. Or the error log file in your account.
That is where PHP errors are recorded.
WHAT AN ERROR TELLS YOU
The type of error The message The file The line number
That combination usually identifies the cause immediately.
THE FILE PATH POINT
The path tells you which component is responsible: a theme, a plugin, core, or custom code.
FOR A BLANK PAGE
Almost always a fatal PHP error with display disabled.
The log has the detail.
FOR A 500 ERROR
Check the error log first. If nothing is there, check .htaccess.
ENABLING ERROR DISPLAY TEMPORARILY
Useful when diagnosing, and never leave it on.
Displayed errors reveal file paths and other information to visitors.
FOR WORDPRESS
Debug mode writes errors to a log file rather than displaying them.
Enable it, reproduce the problem, read the log, disable it.