How to Debug php programs?

Source: Internet
Author: User
Tags apache error log
How to Debug php programs? After a request is sent, the browser cannot accept the returned data and is in the padding state. after a breakpoint is added to the code, the request is still normal only after Apache and MySQL are restarted. However, the second request does not respond.


Reply to discussion (solution)

Check the apache error log.

Debug it with fiddler.

Or right-click in Google's browser and select review elements. then the following page appears. you can view it directly.

I don't know if this meets your needs.

It should be because the program has a problem, but I don't know how to locate the problem.

Or right-click in Google's browser and select review elements. then the following page appears. you can view it directly.

I don't know if this meets your needs.


This cannot be used. the browser is always switching and the content is not visible in the network.

You must restart the web service.

Apparently, your program has an endless loop!
Paste the program to see it


Or right-click in Google's browser and select review elements. then the following page appears. you can view it directly.

I don't know if this meets your needs.


This cannot be used. the browser is always switching and the content is not visible in the network.


Ah? No! Paste the code to me!

It seems that your program has an endless loop. Shorten the running time to see if it will be solved. If yes, check the loop section.
Use set_time_limit (); to set the time allowed for script running, in seconds. If this setting is exceeded, the script returns a fatal error. The default value is 30 seconds.
Set_time_limit (1); // Set to 1 second timeout

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.