how to on debugger in wordpress
- Access your WordPress site's files through FTP or your hosting account's file manager.
- Locate the wp-config.php file in the root directory of your WordPress installation.
- Create a backup of the wp-config.php file before making any changes.
- Open the wp-config.php file using a text editor.
- Find the line that says "/ That's all, stop editing! Happy blogging. /" in the wp-config.php file.
- Just above this line, insert the following code:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
- Save the changes to the wp-config.php file and close it.
- Upload the modified wp-config.php file back to your server if you accessed it via FTP.
- After making these changes, the WordPress debugger will be enabled, and any PHP errors will be logged to a debug log file.