To activate debugging mode, take the following steps:

  1. Connect to your WordPress site using your preferred SFTP client.
  2. Once connected, locate the wp-config.php file in the root directory of your WordPress installation.
  3. Open the wp-config.php file in your text editor.
  4. Find the section titled For developers: WordPress debugging mode.
  5. Update the code to look like this:

if ( ! defined( 'WP_DEBUG') ) {
define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );
}
}

Save the changes you made to the wp-config.php file.

This will enable debug mode, prevent any logging from being displayed on the front end, and log any errors or calls to error_log to a debug.log file.

You can read more about these settings, as well as additional debugging settings you can enable the WordPress Advanced Administration Handbook

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed