How to enable WordPress debug mode

Normally WordPress suppresses most PHP warnings and errors. WordPress debug mode displays error messages that are vital for troubleshooting.
You can find detailed info in the WordPress codex.