WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

/** xdebug helper */
    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?

share|improve this question
up vote 1 down vote accepted

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

share|improve this answer
"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
Oh ok thank you. – meekbot May 20 '13 at 14:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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