# How to Change WordPress Debugging Mode

The WordPress platform offers a debug tool to help identify the cause of errors on your website. While this tool can display information directly on your live site, it is not recommended for publicly accessible websites. Instead, it’s better to create a debug log file, which you can review to pinpoint the issue you’re trying to resolve.

You can do this in a few steps:

* Access the **`wp-config.php`** file by going through; **WP Dashboard>> File Manager>> example.com (main domain folder),** also known a&#x73;**`/public_html`** directory.
* [Edit ](../how-to-get-info-of-mysql-settings-in-wp-config.php#editing-the-wp-config.php-file)the **`wp-config.php`** file, then find and change a line;\
  \- To **Enable WP\_Debug**, you can change the line to: **`define( 'WP_DEBUG', true )`**.\
  \- To **Disable WP\_Debug**, you can change the line to: **`define( 'WP_DEBUG', false )`**.

<figure><img src="https://3634278961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXd0iEK33mLCE7WbhZ063%2Fuploads%2FWA9pPiX6dINQCX5d7cp7%2Fimage.png?alt=media&#x26;token=1187ee0d-4725-408f-891e-4b175368905d" alt=""><figcaption></figcaption></figure>

Save changes.
