Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

When a PHP error occurs in jQuery Mobile, jQuery Mobile issues a popup box that reads "Page Error."

This is great, but not conducive to debugging because I can't see what the error is. How can I see the PHP error in jQuery Mobile?

share|improve this question
1  
Welcome to SQA, David. Are you asking, "How do I use jQuery Mobile to see the PHP error?", or "How do I see the PHP error that jQuery Mobile encountered?" –  user246 Feb 24 '12 at 17:43
    
Thanks, how do I see the PHP error that jQuery Mobile encountered? –  David Faux Feb 24 '12 at 17:56
add comment

1 Answer

up vote 1 down vote accepted

Check the log

Typically, all php errors are logged. The location of the log depends on your operating system. For example, on Ubuntu and Mac OS the log is located at /var/log/php/errors.log. So, in a terminal just tail /var/log/php/errors.log to see the latest errors.

You can find out where your log is and change the location of the log by searching your php.ini file for error_log option. Here is a tutorial on how to do this on unix-like systems: http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html

share|improve this answer
    
Thank you, I can see the errors in /var/log/php/errors.log. –  David Faux Feb 24 '12 at 17:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.