Lompat ke konten
Tools

WP_DEBUG Configurator

Turn on the debug log without breaking your live site

Berjalan di browser kamu. Tidak ada yang diunggah.

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

Tentang 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

Pertanyaan

Apakah aman mengaktifkan WP_DEBUG di situs yang live?

Hanya dengan WP_DEBUG_DISPLAY disetel ke false. Sendirian, WP_DEBUG mencetak notice dan warning PHP — termasuk path file absolut server-mu — langsung ke halaman yang dimuat pengunjungmu. Hampir setiap tutorial memberimu satu baris itu lalu berhenti. Pasangkan dengan WP_DEBUG_LOG dan WP_DEBUG_DISPLAY false dan itu aman.

Ke mana debug log WordPress disimpan?

wp-content/debug.log secara default. Perlu diketahui: di banyak host file itu bisa diambil publik — siapa pun bisa memintanya di browser. Kamu bisa memberikan path ke WP_DEBUG_LOG dan menulis log-nya di atas web root, yang akan dibuatkan tool ini untukmu.

Saya menyetel WP_DEBUG ke true tapi tidak terjadi apa-apa. Kenapa?

Hampir selalu karena konstantanya ditambahkan DI BAWAH baris yang bertuliskan "That's all, stop editing!" di wp-config.php. Semua yang ada setelah baris itu diabaikan. Pindahkan ke atasnya.