Skip to content

How to Enable WordPress Debug Mode

WordPress debug mode can simplify debugging a variety of issues. You can enable debugging using the Hawk Host WordPress Management interface or by modifying the wp-config.php directly.

  1. Log in to cPanel and search for WordPress Management:

  2. Click on WordPress Management to open the dashboard:

    Searching for WordPress Management in cPanel

  3. Find your WordPress site in the list you wish to enable debug mode for

  4. Enable Debugging by clicking the toggle button

    Enabling Debug Mode in WordPress Management

  5. Click the Options button to open the debug configuration

    Debug Configuration in WordPress Management

  6. Configure the debug settings as needed

    Configuring Debug Settings in WordPress Management

  7. Click Save to apply the changes

  1. Log in to cPanel and search for WordPress Management:

  2. Click on WordPress Management to open the dashboard:

    Searching for WordPress Management in cPanel

  3. Find your WordPress site in the list you wish to disable debug mode for

  4. Disable Debugging by clicking the toggle button

    Disabling Debug Mode in WordPress Management

  1. Log in to cPanel and navigate to File Manager (or by using an FTP client)

  2. Navigate to your WordPress installation directory

  3. Locate and open the wp-config.php file

  4. Add or modify the following lines:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
  5. Save the changes

  1. Log in to cPanel and navigate to File Manager (or by using an FTP client)

  2. Navigate to your WordPress installation directory

  3. Locate and open the wp-config.php file

  4. Add or modify the following lines:

    define('WP_DEBUG', false);
    define('WP_DEBUG_LOG', false);
    define('WP_DEBUG_DISPLAY', false);
  5. Save the changes

When enabling debug mode, you can configure the following options:

  • WP_DEBUG: Enables or disables debug mode
  • WP_DEBUG_LOG: Enables or disables logging of errors to a debug.log file in the wp-content directory
  • WP_DEBUG_DISPLAY: Enables or disables displaying errors on the screen

WordPress Hosting Made Easy

Fast NVMe Storage • Free Migrations • 24/7 Expert Support

Explore our WordPress Plans