Vai al contenuto
Strumenti

WP_DEBUG Configurator

Turn on the debug log without breaking your live site

Gira nel tuo browser. Niente viene caricato.

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

Informazioni su 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

Domande

È sicuro abilitare WP_DEBUG su un sito attivo?

Solo con WP_DEBUG_DISPLAY impostato su false. Da solo, WP_DEBUG stampa notice e warning di PHP — inclusi i percorsi assoluti dei file del tuo server — direttamente nelle pagine che i tuoi visitatori caricano. Quasi ogni tutorial ti dà quella riga e si ferma. Abbinalo a WP_DEBUG_LOG e WP_DEBUG_DISPLAY su false ed è sicuro.

Dove finisce il log di debug di WordPress?

In wp-content/debug.log di default. Vale la pena sapere: su molti host quel file è pubblicamente scaricabile — chiunque può richiederlo in un browser. Puoi invece passare un percorso a WP_DEBUG_LOG e scrivere il log sopra la web root, cosa che questo strumento genererà per te.

Ho impostato WP_DEBUG su true e non è successo niente. Perché?

Quasi sempre perché la costante è stata aggiunta SOTTO la riga che dice "That's all, stop editing!" in wp-config.php. Tutto ciò che segue quella riga viene ignorato. Spostala sopra.