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