best way to debug wordpress code example Example: how to debug in wordpress // This enables debugging. define( 'WP_DEBUG', true );