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