debug php code on execution code example Example: how to debug in php ini_set('display_errors', 'On'); error_reporting(E_ALL);