सीधे कंटेंट पर जाएं
Tools

WP_DEBUG Configurator

Turn on the debug log without breaking your live site

आपके browser में चलता है. कुछ भी upload नहीं होता.

Where is this site?

This changes the recommendation, not just the wording. The safe configuration on a live site is genuinely different from the useful one on your laptop.

Verdict

Options
wp-config.php

Paste these ABOVE the line that says /* That's all, stop editing! */ — anything below it is ignored, which is why so many people report that WP_DEBUG 'does nothing'.

WP_DEBUG Configurator के बारे में

Generate the WP_DEBUG constants that write errors to a log file instead of printing them to your visitors. The default WP_DEBUG snippet most sites copy will display PHP errors publicly — this one will not.

मिलते-जुलते

दूसरे tools जिनकी आपको ज़रूरत पड़ सकती है

FAQ

सवाल

क्या किसी live site पर WP_DEBUG enable करना safe है?

सिर्फ़ WP_DEBUG_DISPLAY को false सेट करके. अकेले, WP_DEBUG, PHP notices और warnings print करता है — आपके server के absolute file paths समेत — सीधे उन pages में जो आपके visitors load करते हैं. लगभग हर tutorial आपको बस वो एक line थमा देता है और रुक जाता है. इसे WP_DEBUG_LOG और WP_DEBUG_DISPLAY false के साथ जोड़ें और यह safe है.

WordPress debug log कहाँ जाता है?

Default में wp-content/debug.log. जानने लायक: कई hosts पर वह file publicly fetch की जा सकती है — कोई भी उसे browser में request कर सकता है. आप WP_DEBUG_LOG को एक path दे सकते हैं और log को web root के ऊपर लिख सकते हैं, जो यह tool आपके लिए generate कर देगा.

मैंने WP_DEBUG को true सेट किया और कुछ नहीं हुआ. क्यों?

लगभग हमेशा इसलिए क्योंकि constant को wp-config.php में उस line के नीचे जोड़ा गया जो कहती है "That's all, stop editing!". उस line के बाद का सब कुछ नज़रअंदाज़ हो जाता है. इसे ऊपर ले जाएँ.