Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

The standard WordPress debug log is wp-content/debug.log. It is created only when WP_DEBUG is enabled and WP_DEBUG_LOG is enabled (or set to a custom path). To record problems without showing PHP warnings to visitors, place these constants in wp-config.php, above the “That’s all, stop editing! Happy blogging.” line:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Then retrieve the file with your host’s file manager, SFTP, or SSH. A missing entry does not prove that nothing failed: PHP and web-server logs are separate sources and may contain failures that never reach the WordPress log.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Where is WordPress debug.log?

For a conventional WordPress installation, the file is in the content directory:

/wp-content/debug.log

The file is written only while WordPress debugging is configured correctly. WP_DEBUG_LOG is a companion to WP_DEBUG; setting the former while leaving the latter disabled does not start logging. WordPress documents the default location as /wp-content/debug.log and allows WP_DEBUG_LOG to contain a valid custom file path instead. See the WordPress debugging documentation.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.

When the file is not in wp-content

Check wp-config.php for a definition such as:

define( 'WP_DEBUG_LOG', '/var/log/my-wordpress-debug.log' );

In that case, use the configured path rather than looking for wp-content/debug.log. The path may be relative to the WordPress installation or an absolute server path, depending on how it was configured; follow the value shown in your file exactly.

What “critical error log” means in practice

WordPress does not create a separate universal file named “critical-error.log.” A critical error shown by WordPress is commonly associated with a PHP fatal error, and the details normally appear in debug.log when WordPress debugging is active. If the fatal error occurs before WordPress can initialize, look in the hosting account’s PHP error log and, when relevant, its web-server error log.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How to enable WordPress logging

Use this configuration for diagnosis when you need a record but do not want diagnostic text inserted into page HTML:

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
  1. Make a backup of wp-config.php before editing it.
  2. Open the file in the WordPress installation’s top-level directory.
  3. Insert the three define() statements below the database and other configuration values, but above the line that says “That’s all, stop editing! Happy blogging.”:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
  1. Save the file and reproduce the problem once. For example, load the failing page, submit the form, or repeat the administration action that triggered the warning.
  2. Retrieve wp-content/debug.log, or the custom path specified by WP_DEBUG_LOG.

WP_DEBUG_DISPLAY set to false keeps warnings, notices, and other diagnostic output out of the response sent to visitors while logging continues. This is preferable whenever a site must remain usable during diagnosis. WordPress’s official configuration guidance is available in the debugging handbook.

Development and production considerations

WordPress describes its debugging tools primarily as development and staging tools. Enable verbose logging for the shortest practical troubleshooting window, collect the evidence you need, and then turn it off. Leaving debug mode active can fill storage with repeated notices and can expose implementation details if display settings or file permissions are wrong.

Where to open or download the log

You do not normally read debug.log from a public web address. Use an authenticated server-access method instead.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

Host file manager

  1. Sign in to the hosting control panel.
  2. Open the file manager and navigate to the directory containing wp-config.php.
  3. Open wp-content, then select debug.log.
  4. Use the editor for a quick inspection or download the file and open it in a text editor that handles large plain-text files.

If logging uses a custom path, navigate to that location rather than the content directory.

FTP or SFTP

  1. Connect with the account and server details supplied by your host; prefer SFTP when it is available.
  2. Open the WordPress installation directory and then wp-content.
  3. Download debug.log for local searching, or open it with the client’s text-viewing function.
  4. For a custom WP_DEBUG_LOG path, browse to the configured directory.

SSH

With shell access, change to the configured directory and use a pager or text-search command supplied by your server environment. Do not make the log executable or edit entries in place; copy it first if you need to annotate evidence.

WordPress.com

WordPress.com’s Site Logs documentation says its site logs record PHP errors and web-server requests. If you create custom WP_DEBUG_LOG or error_log files there, the documentation directs you to retrieve them with SFTP or SSH. The dashboard’s site-log view and a custom file are therefore not necessarily the same stream.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Which WordPress log should you read?

Use the source that matches the layer where the failure occurs. A plugin warning may be visible in the WordPress debug file, while a request rejected by the web server may appear only in server logs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Log Typical location or access What it can show When to use it
WordPress/PHP debug log wp-content/debug.log or the path set in WP_DEBUG_LOG PHP errors, warnings, notices, and messages sent through PHP’s error_log() while WordPress debugging is enabled A plugin, theme, WordPress hook, or PHP-level problem that reaches WordPress
Host PHP error log Hosting dashboard, file system, or provider-specific location PHP failures that may occur outside the normal WordPress debug-file workflow The site shows a fatal error but debug.log is empty, or the failure happens during early PHP startup
Web-server log Managed-host dashboard or the Apache/Nginx request and error-log locations Requests, routing failures, server responses, and web-server errors 404/5xx responses, rewrite or routing issues, blocked requests, and failures before PHP handles the request

Paths and dashboard names for PHP and web-server logs vary by provider. A managed WordPress host may expose both streams in one interface, but they remain different evidence sources.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to read a WordPress log entry

Start at the newest entries generated immediately after you reproduce the problem. A useful reading order is:

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
  1. Timestamp: establish when the event occurred and match it to your test.
  2. Severity: distinguish a Fatal error from a Warning, Notice, or another level. A fatal error generally stops the affected request; a notice may indicate a compatibility or coding issue without stopping the page.
  3. Message: read the full text, including the undefined function, missing class, invalid argument, or other specific condition.
  4. File and line: note the path and line number. The named file often identifies the plugin, theme, or core component involved.
  5. Stack trace: follow the sequence of calls to see how the request reached the reported line. The first third-party component in the trace is a useful investigation lead, not automatic proof of responsibility.

After recording the original entry, reproduce the failure again and compare only the new lines. This separates the event you are investigating from old, repeated notices. Treat repeated messages as clues and confirm that they occur during the request that actually fails before changing code or disabling a component.

Example of a practical investigation

  1. Clear your immediate working view by downloading the current file or moving to its end.
  2. Record the time, URL or administration action, and the account or browser action that triggered the problem.
  3. Perform that action once.
  4. Refresh the log and isolate entries with the matching timestamp.
  5. Identify the component path, then check whether the same component appears in the surrounding stack trace.
  6. Repeat once after the suspected change. A different error may indicate that the first issue was only the earliest failure.

What to do when debug.log is missing or empty

Symptom Likely explanation Next check
No file appears in wp-content WP_DEBUG is not true, WP_DEBUG_LOG is disabled, or logging points elsewhere Inspect both constants in wp-config.php, including any later definition that overrides an earlier one, and check for a custom path
The site fails but the WordPress file remains empty The failure occurs before WordPress logging starts or is recorded by the host instead Open the host PHP error log, then the web-server error log
The file exists but does not change Your test did not reach the failing code, or the server cannot write to the configured location Reproduce the exact request, verify the configured path, and ask the host to confirm log-write permissions and PHP configuration
Entries appear but not on the page WP_DEBUG_DISPLAY is false Read the file; hidden browser output is expected with this safer setting
Only old entries are present The current request generated no new message, or you are reading a rotated or different file Note the file path, check its modification time, and compare it with the host’s PHP and web-server logs

When requesting help from a host, provide the timestamp, request URL, severity, and the relevant message rather than publishing the entire file. This gives support enough context to locate the matching server request while limiting disclosure.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Protect logs and disable debugging after diagnosis

A log can contain file-system paths, plugin names, request details, and data included in error messages. Do not make debug.log reachable through a normal public URL. The wp-config.php handbook warns that publicly accessible log files are a security risk and recommends placing logs above the public root when possible. If that is not possible, restrict access and permissions.

  • Keep WP_DEBUG_DISPLAY set to false while collecting evidence on a live site.
  • Use an authenticated file-manager, SFTP, or SSH session rather than a browser URL.
  • Remove or protect old logs after preserving the lines needed for the incident record.
  • Set WP_DEBUG and WP_DEBUG_LOG back to their normal production values when troubleshooting is complete.
  • Check that a custom path is outside the public document root whenever your hosting layout allows it.

A quick decision path

  1. Need a WordPress/PHP message? Enable WP_DEBUG and WP_DEBUG_LOG, leave display disabled, reproduce the issue, and read the configured file.
  2. Need to know why a critical-error page appears? Check the newest fatal entry in the WordPress debug file; if none exists, move to the host PHP log.
  3. Seeing a 404, 403, or 5xx response without a PHP entry? Inspect the web-server request and error logs.
  4. Using WordPress.com? Start with Site Logs, then use SFTP or SSH for custom log files as described in its documentation.
  5. Finished? Disable verbose debugging and secure or remove the log.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.