As a beginner, I mean debugging is very troublesome.

Source: Internet
Author: User
Tags zend server
As a Cainiao, I said debugging is very troublesome. of course, you can use echo. However, if you have used Visual Studio, you will find it very convenient to debug. Currently, I am using ZENDSTUDIO, but it does not seem to be capable of line-by-line debugging or exception debugging. Or I won't use it. In addition, when I was reading the tutorial, I created a new xxxModel. class. ph in it as a Cainiao. I said debugging was very troublesome.
Of course, you can also use echo. However, anyone who has used Visual studio will find it very convenient to debug.

Currently, I am using ZEND STUDIO, but it does not seem to be capable of line-by-line debugging or exception debugging. Or I won't use it.

In addition, when I was reading the tutorial, I created a new xxxModel. class. php. The system will automatically write the class xxxModel extends Model ...,

How can I set this? Thank you.

------ Solution --------------------
I have complained about php debugging...

Zendstudio supports line-by-line debugging, but I am using it in Linux, but I don't need this now.

Yes, echo ''; exit ();

Set the template ....


------ Solution --------------------
I am also using zend, and I have not found any line-by-line Debugging. they all use manual debugging. Scan your eyes one row at a time.
------ Solution --------------------
Echo exit float!
------ Solution --------------------
Well, see the fourth floor,

One-step debugging must install debugging software on the server... because php runs on the server.
Zend studio does not contain web servers. you can connect to various web services on a remote linux or Windows...
You can install the zend server supporting zend studio (including zend debugger.


Why does ms bring its own stuff... because it's a family...


------ Solution --------------------
For debugging, I usually var_dump () and then die ();
I think var_dump () is important to complete data.
------ Solution --------------------
Var_dump (); die ();
------ Solution --------------------
Die () echo
------ Solution --------------------
Select the mode as needed:
Echo
Print_r
Var_dump
JS: alert
And so on are some simple but practical adjustment methods.

The deeper debugging mode is XDEBUG.

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.