0

Right now I place the following code wherever I expect something to go wrong.

/** xdebug helper */
    error_reporting(E_ERROR);
    ini_set("display_errors", 1);
    ini_set("html_errors", 1);

Where should I include this code so that it's always called on every page?

1

They recommend putting it into the wp-config.php file.

You can read more about it from the codex Editing wp-config

It is quite a long document but the error info is found at 2.15 Configure Error Logging

1
  • "This answer was automatically flagged as low-quality because of its length and content", which I am sure you don't want. I know. The nature of the question makes for a short answer but try to elaborate. Who recommends, for example?
    – s_ha_dum
    May 20 '13 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.