We've got some custom endpoints set up that do various things, which we access via /wp/wp-admin/admin-ajax.php?action=some_action
However whenever there is an error as we're developing, such as syntax, logical, fatal etc, we simply get "500 Internal Server Error"
Every other page on the site when there's an error, it gives us the PHP error.
We have to then open our PHP Log file to see the error.
Is there something in wordpress that disables displaying of errors on these URLs? and if so, how can we prevent this to allow rendering of the errors on the browser?