Zendstudio 12 Configuration Xdebug Development thinkphp

Source: Internet
Author: User

Previously used Zend Studio 9 + Zend Server 5.5, because Zend Server 5.5 supported PHP up to 5.3 versions only, in order to use php5.5, had to switch to Xdebug. Zendstudio How to configure Xdebug before the 10 version of the article online quite a lot, but Zendstudio 12 version of almost no, groping for a few days, collated a copy to make memo.

The first is to install PHP and Xdebug, the simplest way is to download a phpstudy ,php, MySQL, xdebug, etc. are packaged together, the basic configuration is free, installed on it can be used. Phpstudy When installing PHP 5.5 version, please verify in php.ini that Xdebug is configured properly.

Then is the installation Zendstudio 12 version, Zendstudio 12 online Many places can download to, the specific installation steps and the previous version of the difference is not big, here is not much to say.

The first step is to create a thinkphp demo project, the entry default is index.php, the non-thinkphp project portal can be determined by itself.

After the project is created, the following is the configuration of Xdebug:

Click the Preferences item in the window main menu in Zendstudio,

Add an Apache to the servers below the PHP bar

The following is the configuration details, note that the document root here to a Apache configuration consistent.

?

In the PHP column debug in the configuration of PHP server is just configured Apache, type Xdebug, pay attention to the "break in first line" tick off.

Under the General column, under Web Browser, choose to use an external browser for development debugging.

Once the above is configured, switch to debug configurations under the Run main menu of Zend Studio, select PHP Web application, create a new configuration item Demo,server Select the Apache you just created, File Fill thinkphp entry Index.php,url tick off Auto Generate, here fill in our demo project's start HTML path/demo/index.php/test.html, next is click Debug.

Do you see it? The debugging interface has been tuned up, remember to set a breakpoint Oh,:)

Zendstudio 12 Configuration Xdebug Development thinkphp

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.