Powerful Tool for PHP debugging-Zend studio for eclipse

Source: Internet
Author: User

When looking for a job, many php interviewers will ask what your IDE is? My experience is: as long as you answer Dreamweaver or Editplus, there will be a feeling of contempt, and it may be my illusion.

In the previous job, the company used Zend Studio Neon Beta for PHP. I tried to configure it in the past to debug PHP code (because of Drupal code, due to limited capabilities, the source code cannot be read !), Failed! Later, for some reason, I left the company despite some reluctance.

In today's company, tasks are full every day. Although frank, my team leader, has been learning PHP for only a few months, he has been working on JAVA for three years. In addition, he has a strong hands-on ability, I admire him very much (I will not admire him very much, huh, huh !), You have benefited a lot.

Because we are working on some portal websites and B2B websites, we use cms in China, which is easier to understand. frank also patiently guides me, objectively pointed out some limitations of your thinking. If you encounter problems, do not ask people. Instead, try your best to solve them. If you want to use Google and try it on your own, you can't simply think about it. You need to practice it, write code, and others will tell you at most some ideas. You need to write and write more on your own, then you will know, "Oh, it looks like this! ". I have tried it many times and it is suitable for myself. In the next time, I encountered a problem and insisted on checking the information to solve the problem. I did not ask people, and the response speed of others was too slow.

I have made a lot of nonsense. Haha, it's another summary of my own!

The detailed process is as follows:
1.

Download and install related software

JDK is required. It is the most basic requirement for running eclispe. You can download it from the official Java website. And download zenddebugger. dll. Select the appropriate file to download according to your PHP version. My name is PHP 5.2.6. The downloaded file also contains a dummy. PHP file, which should be placed in the root directory of the document, that is, configure httpd on your server. in the conf file, set the corresponding location for DocumentRoot. I believe it is clear.
If the server is arbitrary, we recommend that you install the Apache + PhP module. You can use XAMPP.
JDK environment variables can be configured on Google, with a large number of nodes on the network. Because I configured the Java environment myself some time ago, I accidentally hit it. This step is saved.

2. Software Installation
JDK environment variable settings,

Place zenddebugger. dll in a place that is not easily deleted. Download eclipse. I use Zend studio for eclipse.

6.1.0

Version.

3. Key configurations

3-1 open the/XAMPP/Apache/bin/PHP. ini file,


Load zenddebugger. dll under [Zend]

Zend_extension_ts = "zenddebugger. dll file absolute path"
Zend_debugger.allow_hosts = 127.0.0.1/10, and your own IP Address
Zend_debugger.expose_remotely = always

Note that the path after zend_extension_ts must be an absolute path. After saving the file, restart the server.


Use phpinfo () to view the PHP configuration. If the installation is successful, you can see the message in the Zend debugger column.

For more information about eclispe configuration, see http://be-evil.org/showlog-70.html.Eclipse global configuration




3-3 is the configuration of Apache, which is modified in the/XAMPP/Apache/CONF/httpd. conf file. For details, see configure.

I spent a lot of time configuring this tool in my spare time. When I saw that the dream debugging method was successful, I was a little ecstatic and relieved, I configured it by checking the information myself. Many of my colleagues have spent very little time configuring the configuration. There is no way. I am using this capability now. This tool can be mined in more places and I believe I can do it well.

If you have something you don't understand, you can talk about it. Thank you!

 

Make zend debugger and zend Optimizer the debugging tool co-exist and harmonious!

Post http://www.zendstudio.net/archives/zend-debugger-and-zend-optimizer-are-peaceful/

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.