Enabling Debug Mode in WordPress

  1. Openup config file site wp-config.php in the built-in editor filemanager or any FTPclient.
  2. Find the line with the parameter WP_DEBUG:
    define('WP_DEBUG', false);
  3. In the found line, replace false on trueso that it looks like this:
    define('WP_DEBUG', true);
  4. If errors need to be displayed not on the screen, but in the standard WordPress log file (by default, this wp-content/debug.log), under the line with the parameter WP_DEBUG insert lines like this:
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors', 0);
  5. Save your changes.
  6. Reproduce the error on the site to see it offscreen or log it to the WordPress log file.

After identifying the source of errors on the site and eliminating their causes, it is recommended to disable debug mode.