Naar de inhoud
Tools

WP_DEBUG Configurator

Turn on the debug log without breaking your live site

Draait in je browser. Er wordt niets geüpload.

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'.

Over de 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.

FAQ

Vragen

Is het veilig om WP_DEBUG op een live site in te schakelen?

Alleen met WP_DEBUG_DISPLAY op false. Op zichzelf print WP_DEBUG PHP-notices en -waarschuwingen — inclusief de absolute bestandspaden van je server — rechtstreeks in de pagina's die je bezoekers laden. Bijna elke tutorial geeft je die ene regel en stopt daar. Combineer het met WP_DEBUG_LOG en WP_DEBUG_DISPLAY op false en het is veilig.

Waar komt het WordPress-debuglog terecht?

wp-content/debug.log standaard. Goed om te weten: op veel hosts is dat bestand publiek opvraagbaar — iedereen kan het in een browser opvragen. Je kunt in plaats daarvan een pad meegeven aan WP_DEBUG_LOG en het log boven de webroot schrijven, wat deze tool voor je genereert.

Ik heb WP_DEBUG op true gezet en er gebeurde niets. Waarom?

Bijna altijd omdat de constante is toegevoegd ONDER de regel die zegt "That's all, stop editing!" in wp-config.php. Alles na die regel wordt genegeerd. Zet het erboven.