Sorry If I posted this here, because it's related to AJAX

Aside from viewing the error using Error Log in the CPANEL.
How do you see a PHP error behind an AJAX page?

I have a PHP function that is being called after the AJAX form page is executed.
My problem is since the form page doesn't refresh the whole page, I don't have any idea what's happening behind the AJAX.

How do I see the PHP error behind an AJAX page?

What is your solution to this?

Thanks in advanced.