Guides and tutorials

Hundreds of tutorials and step by step guides carefully written by our support team.

How to activate debug mode in Wordpress

Activate debug mode in Wordpress

Debug mode is a Wordpress tool that can be very useful in order to obtain the error messages that your web page made in Wordpress is giving you.

To activate this mode, you must follow these steps:

  1. You must connect via FTP, to do this, you can follow this [guide] (https://www.swhosting.com/es/comunidad/manual/gestion-de-cuenta-ftp).

  2. Once you have entered the FTP, you should go to /data/web and look for the file wp-config.php:

![enter image description here] (https://static.swpanel.com/doc/images/0176/0176_01.png)

3.Subsequent you must modify said file:

![enter image description here] (https://static.swpanel.com/doc/images/0176/0176_02.png)

  1. Once you have modified it, you must add the following line:

define ('WP_DEBUG', true);

![enter image description here] (https://static.swpanel.com/doc/images/0176/0176_03.png)

  1. Once you have added this line, errors will be displayed on your web page.

Activate debug mode in Wordpress, but without showing errors publicly

If you want to activate Debug mode, but do not want errors to be seen publicly, you must carry out the following steps:

  1. Connect via FTP and modify the file wp-config.php. In this file you must add the following line:

define ('WP_DEBUG_LOG', true);

Once this is done, in the ** wp-content / debug.log ** folder you will see the error logs.