Traditionally I use FireBug to debug my AJAX requests. It lets you examine both the contents of your request as well as the response that was sent back from the server. (it
In the fail callback, the first parameter has a property called responseText.