Magento Developer – Debugging Hard To Find Errors (White Pages)

This post is for any developers working with Magento

While looking at a white page and having all debugging enabled in Magento, I scrached my head wondering what was wrong. Finally I came across the issue. If this ever happens to you, add xDebug breakpoints to the file here:

app/code/core/Mage/Core/functions.php

There is the function function mageCoreErrorHandler() just add some breakpoints there like this:

breakpoint

While no error message is shown on the page, the error showed up here finally, and allowed me to continue working after looking for 1 – 2 hours to find it. Sometimes even with display_errors on in php.ini, and in index.php of Magento having developer mode set to true, it will still not show you the errors. Hopefully this tip will help someone.