Try to use one of these plugins https://wordpress.org/plugins/query-monitor/ https://wordpress.org/plugins/error-log-monitor/
Regards