Saltar al contenido
Herramientas

WP_DEBUG Configurator

Turn on the debug log without breaking your live site

Funciona en tu navegador. No se sube nada.

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

Sobre 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

Preguntas

¿Es seguro activar WP_DEBUG en un sitio en producción?

Solo con WP_DEBUG_DISPLAY en false. Por sí solo, WP_DEBUG imprime los avisos y advertencias de PHP, incluidas las rutas absolutas de los archivos de tu servidor, directamente en las páginas que cargan tus visitantes. Casi todos los tutoriales te dan esa línea y se paran ahí. Combínalo con WP_DEBUG_LOG y WP_DEBUG_DISPLAY en false y es seguro.

¿Dónde va el debug log de WordPress?

En wp-content/debug.log por defecto. Conviene saberlo: en muchos hostings ese archivo se puede solicitar públicamente; cualquiera puede pedirlo en un navegador. Puedes pasar una ruta a WP_DEBUG_LOG en su lugar y escribir el log por encima de la raíz web, algo que esta herramienta te generará.

Puse WP_DEBUG en true y no pasó nada. ¿Por qué?

Casi siempre porque la constante se añadió DEBAJO de la línea que dice "That's all, stop editing!" en wp-config.php. Todo lo que va después de esa línea se ignora. Muévela por encima.