Zum Inhalt springen
Tools

WP_DEBUG Configurator

Turn on the debug log without breaking your live site

Läuft in deinem Browser. Nichts wird hochgeladen.

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

Über das 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

Fragen

Ist es sicher, WP_DEBUG auf einer Live-Website zu aktivieren?

Nur mit WP_DEBUG_DISPLAY auf false. Für sich allein gibt WP_DEBUG PHP-Hinweise und -Warnungen aus – einschließlich der absoluten Dateipfade deines Servers – direkt in die Seiten, die deine Besucher laden. Fast jedes Tutorial gibt dir diese eine Zeile und hört dann auf. Kombiniere sie mit WP_DEBUG_LOG und WP_DEBUG_DISPLAY false, und sie ist sicher.

Wohin schreibt WordPress die debug.log?

Standardmäßig nach wp-content/debug.log. Wichtig zu wissen: Auf vielen Hosts ist diese Datei öffentlich abrufbar – jeder kann sie im Browser anfordern. Du kannst WP_DEBUG_LOG stattdessen einen Pfad übergeben und das Log oberhalb des Web-Roots schreiben, was dieses Tool für dich erzeugt.

Ich habe WP_DEBUG auf true gesetzt und nichts ist passiert. Warum?

Fast immer, weil die Konstante UNTERHALB der Zeile „That's all, stop editing!“ in wp-config.php ergänzt wurde. Alles nach dieser Zeile wird ignoriert. Verschieb sie darüber.