Configure Eclipse php xdebug

Source: Internet
Author: User

The first step, if you are not sure which xdebug. dll to download, please output phpinfo (), copy all the information on the page, copy to this site, the http://xdebug.org/wizard.php according to the given information to download the corresponding dll.

Step 2: Drop the downloaded dll to the ext extension directory under the php Directory.

Step 3: Open the php. ini file and copy the following code to the last line.

[Xdebug]; extension = php_xdebug.dllzend_extension = "E: \ www \ php54 \ ext \ php_xdebug.dll"; extension = "E: \ www \ php54 \ ext \ php_xdebug.dll" xdebug. profiler_enable = onxdebug. trace_output_dir = "E: \ www \ xdebug"; xdebug data file directory xdebug. profiler_output_dir = "E: \ www \ xdebug"; xdebug data file directory xdebug. max_nesting_level = 10000; if it is too small, when the number of recursive calls in the function is too many, the system reports an error that exceeds the maximum number of embedded sets. remote_enable = true; Xdebug allows remote IDE connection to xdebug. remote_host = 127.0.0.1; the IP address of zend studio that can be connected xdebug. remote_port = 9000; reversely connects to the port xdebug used by zend studio. remote_handler = dbgp; application-layer communication protocol used for remote debugging of zend studio

When you configure the extension dll, you must identify the version of ts, especially the line zend_extension = "E: \ www \ php54 \ ext \ php_xdebug.dll ", most users can see xdebug in phpinfo output but cannot use it in development tools. This may be the reason for this. Restart your web server.

Next, configure the development tool. I use Eclipse and perform the following operations:

Window-> preference-PHP

Select PHP Executables-> add. A Configuration box is displayed, for example:

Name can be retrieved at will.

Executables pathis php.exe in the PHP Directory.

PHP ini is the php. ini file in the php Directory.

Select XDebug in PHP debugger Mode

Save.

Then, in Debug, select the corresponding Configuration ,:

In the last step, restart.

 

 

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.