Website Building » WooCommerce » How Do I Enable Debug Mode in WooCommerce?

How Do I Enable Debug Mode in WooCommerce?

Last updated on October 1, 2022 @ 3:43 pm

Debug mode in WooCommerce is a great tool that can help you troubleshoot various issues that you may be having with your WooCommerce store. There are two ways to enable debug mode in WooCommerce:

The first way is to add the following line to your wp-config.php file:

define( ‘WC_DEBUG’, true );

The second way is to add the following line to your theme’s functions.php file:

add_filter( ‘woocommerce_debug_mode’, ‘__return_true’ );

Once you have added the appropriate line to either your wp-config.php or functions.php file, you will then need to save the file and upload it to your server. After doing so, debug mode will be enabled and you will be able to start troubleshooting any issues you may be having with your WooCommerce store.

PRO TIP: If you are not a developer, we strongly recommend that you do not attempt to enable debug mode in WooCommerce. Doing so could break your site, and you will likely not be able to fix it without assistance from a developer.

Enabling debug mode in WooCommerce is a great way to troubleshoot various issues that you may be having with your store. There are two ways to enable debug mode in WooCommerce: by adding a line to your wp-config.php file or your theme’s functions.php file. Once you have added the appropriate line and saved the file, debug mode will be enabled and you can start troubleshooting any issues you may be having with your store.

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.