Simple and efficient method.
Add the code directly.
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
?>Just add in the erroring PHP filetopmostAdd the following code,Only takes effect on the current script