Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.