Scaffold new debugging and logging docs

This commit is contained in:
Corey McKrill 2023-08-24 12:42:38 -07:00
parent 53c93ab449
commit 17fec62a0b
No known key found for this signature in database
GPG Key ID: 84BBFE669C4D97B8
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# Debugging
## WordPress
WordPress itself has a basic toolset for debugging. It's usually a good place to start.
* [Debugging in WordPress](https://wordpress.org/documentation/article/debugging-in-wordpress/)
## Logging
https://woocommerce.com/document/create-a-plugin/#section-19
https://woocommerce.com/document/create-a-plugin/#section-22
## Xdebug
* [Using Xdebug](https://github.com/WordPress/gutenberg/tree/trunk/packages/env#using-xdebug)
## Helper functions
wc_print_r
https://github.com/woocommerce/woocommerce/blob/53c93ab4496968a1e45a08573ca52e21f16e8e47/plugins/woocommerce/includes/wc-core-functions.php#L2056-L2087

View File

@ -0,0 +1,5 @@
# Logging in WooCommerce
Beyond the error logging available in WordPress, WooCommerce has its own robust system for logging, which can be used for debugging during development, catching errors on production, or even sending notifications when specific events occur.