Skip to content
ONDI

← All terms

Websites & CMS

Debug log (debug.log)

Japanese デバッグログ

A file where WordPress writes down error details. Anyone can open it by its web address, so once you find the cause, turn the setting back and delete the file.

Normally WordPress does not keep a separate record when an error happens. Once you switch the setting on, it writes into a file called debug.log, one entry after another, which file and which line produced which error. Like a patient's chart at a hospital, it is the clue that points to the cause hidden behind the visible symptom, the white screen. The folder names in the log usually tell you which plugin or theme is behind the problem. The messages look technical, but even the file names alone are a useful lead.

Watch out The file is usually created inside the wp-content folder, and anyone who knows its address can open it in a web browser. It can reveal your server's folder layout and the plugins you use, which gives attackers hints. Once you have found the cause, turn the debug settings in wp-config.php back to how they were and delete debug.log. Leaving yourself a note helps make sure you do not forget it is switched on.

Source: WordPress Developer Resources, “Debugging in WordPress” · WordPress Developer Resources, “Editing wp-config.php” (checked 2026-10-26)

See also

A typo here, a clumsy button there.

This site is still being polished. Spot something? Tell us — we’ll fix it and send a small thank-you gift.

🎁 Thank-you gift