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