title: Displaying PHP Errors from admin-ajax.php in Wordpress 4.9+
body: <p>We've got some custom endpoints set up that do various things, which we access via <code>/wp/wp-admin/admin-ajax.php?action=some_action</code></p>
  
  <p>However whenever there is an error as we're developing, such as syntax, logical, fatal etc, we simply get "500 Internal Server Error" when viewing the page in the browser.</p>
  
  <p>Every other page on the site when there's an error, it gives us the PHP error, to help us debug.</p>
  
  <p>However when the error comes from the <code>admin-ajax.php</code> area, we have to then open our PHP Log file to see the error instead - which is more of a pain when actively developing</p>
  
  <p>Is there something in wordpress that disables displaying of errors on this URL namespace? and if so, how can we prevent this to allow rendering of the errors on the browser?</p>