To display errors, edit the /etc/php.ini file and set:
/etc/php.ini
display_errors = On
Note: Don’t forget to re-start the web server…
Simple debugging can be done with print statements e.g:
print("we are here...");