---
title: "Enabling/disabling WordPress debug.log"
canonical_url: "https://www.zone.lv/help/kb/enablingdisabling-wordpress-debuglog/"
post_type: "ht_kb"
published: "2024-06-11T07:21:02+00:00"
modified: "2024-06-11T07:22:25+00:00"
language: "en"
author: "silver"
taxonomies:
  ht_kb_category:
    - name: "Technical"
      url: "https://www.zone.lv/help/kb-categories/technical-en/"
    - name: "Wordpress"
      url: "https://www.zone.lv/help/kb-categories/wordpress-en/"
  ht_kb_tag:
    - name: "debug.log"
      url: "https://www.zone.lv/help/kb-tags/debuglog-en/"
    - name: "wordpress"
      url: "https://www.zone.lv/help/kb-tags/wordpress-en/"
    - name: "WP_DEBUG"
      url: "https://www.zone.lv/help/kb-tags/wp_debug-en/"
---

# Enabling/disabling WordPress debug.log

### What is WP\_DEBUG?

**WP\_DEBUG** is a feature in WordPress that allows you to save all errors that occur during website development in a `debug.log` file. If you leave the debugging feature enabled after site development is complete, the debug.log file can become very large, as can system backups.

### How to enable/disable WP\_DEBUG?

First you need to go to an FTP client program or WebFTP client to change files. To easily change files via `My Zone` control panel, from the service overview page at the top, select `Web Hosting` → `FTP` → `WebFTP` .

[![](https://www.zone.lv/static/sites/5/wp_debug_eng1-1024x449.png)](https://www.zone.lv/help/en/kb/enablingdisabling-wordpress-debuglog/wp_debug_eng1/)

In WebFTP, open the `htdocs` directory for the application located on the main domain. If it is a subdomain, open the directory with the subdomain name.

[![](https://www.zone.lv/static/sites/5/wp_debug_eng2-e1718089077359-300x168.png)](https://www.zone.lv/help/en/kb/enablingdisabling-wordpress-debuglog/wp_debug_eng2/)

In the directory that opens, find the `wp-config.php` file, right-click it and select `Edit`.

[![](https://www.zone.lv/static/sites/5/wp_debug_eng3-e1718089106442-300x141.png)](https://www.zone.lv/help/en/kb/enablingdisabling-wordpress-debuglog/wp_debug_eng3/)

### Enabling debug.log

To enable `debug.log`, find the `WP_DEBUG` and `WP_DEBUG_LOG` lines and change the values to **`true`**:

```
define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true);
```

If `WP_DEBUG` and/or `WP_DEBUG_LOG` are missing, add the missing lines after the following comment:

```
/* Add any custom values between this line and the "stop editing" line.
```

![EST wp debug true](https://www.zone.lv/static/sites/5/EST-wp-debug-true-1-e1718089266548.png)

After making the changes, click `Save`.

### Disabling debug.log

To disable `debug.log`, change the `WP_DEBUG` and `WP_DEBUG_LOG` lines to **`false`**:

```
define( 'WP_DEBUG', false);
define( 'WP_DEBUG_LOG', false);
```

![EST wp debug false](https://www.zone.lv/static/sites/5/EST-wp-debug-false-1-e1718089279675.png)

After making the changes, click `Save`.
