How to enable Wordpress debug mode

How to enable Wordpress debug mode

WordPress is the most widely used CMS in the world. This means it has one of the largest libraries of plugins available to install on your hosting.
 
As open-source software, it allows any individual or organization to create a new plugin to improve the WordPress ecosystem. With so many plugins and themes available, their visibility and variety make it necessary to have a tool that helps you identify errors in more detail.
 
WordPress provides a Debug tool to help discover what may be causing an error on your website.
 
Below we show how to enable WordPress debug mode:
 
First of all, you need to access your hosting via FTP in order to enable it:
 
To connect to the "webFTP" service, you need a username and password, which you can find in your cdmon control panel, under Hosting Management, in the section Hosting Information. By clicking the eye icon, you can view the password, which is hidden for security reasons.
 
 
Once you have the connection details, access the FTP manager directly from the hosting management panel by clicking the Web FTP Access (net2ftp) icon under the 'File Managers' section.
 
 
In the webFTP login panel, enter your FTP credentials (username and password), which you can find in the 'Hosting Information' section.
 
 
Once inside webFTP, you will be able to view your hosting files and/or directories. Go to /web:



Once inside the /web folder, all your website files will appear. Locate the file named wp-config.php and click on Edit for that file:
 
 
The wp-config.php file code will open. Look for the following line, which disables Debug mode:
 
define('WP_DEBUG', false);
 
To enable Debug mode, simply change false to true, as shown below:
 
define( 'WP_DEBUG', true );
 
Note: If you want WordPress errors to be stored in a .log file, you can add the following lines just below the change you made:
 
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );
 
When an error occurs in WordPress, it will be written to a file called debug.log. This file is located in your /wp-content/ directory. Open this file using SSH or your FTP client to review the debug report.
 
 
For more information, you can  contact us.