Step 1:
First, we need to identify which PHP version are we using. To do that go the MAMP, and click on the Preferences. After that click on the PHP section and that will display the PHP version.
Step 2:
So, we found out which PHP version are we using to develop the application. Now, move to the Applications / MAMP/ bin / PHP / php[version] i.e. PHP 7.1.x.x. / config > php.ini. Now, search for two things and they are error_reporting, and display_errors. Change display_errors = Off to On and leave error_reporting to E_ALL as default. E_ALL will report all errors. So, we don’t need to change anything on that part.
Step 3:
Restart the apache by stopping and starting the server in MAMP. Now, you can see the errors on your web page.