How to enable silent debug for future review

If you need to debug your WordPress website which is live and want to silently track issues for debugging and resolving later you can do so by editing your wp-config.php file.

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 */

define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false ); // Enable silent WP_DEBUG mode

Now all errors will be logged to a debug.log file located in the wp-content folder. Use this debugging method to review all errors at a later stage or over a couple of days. With this data you can correct any issues with your WordPress website. Once done, set the debug options to false.

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 */

define('WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
define( 'WP_DEBUG_DISPLAY', false ); // Enable silent WP_DEBUG mode