Introduction to Xdebug Configuration installation steps in PHP5

Source: Internet
Author: User

Xdebug version Download

http://www.xdebug.com/download.php

Note that when downloading xdebug we have to look at our PHP version of the same as Xdebug, and to see if your PHP is thread-safe or non-linear program safe, otherwise you can not use OH.


Download good Php_xdebug.dll After we copy to your PHP ext directory, such as

D:/phpstudy/php5/ext/php_xdebug.dll

This is my local, put the php.ini file to modify, add the following code

  code is as follows copy code

[Xdebug]
zend_extension= "D:/phpstudy/php5/ext/php_xdebug.dll"
Xdebug.collect_return=1
Xdebug.show_mem_delta=1
Xdebug.show_exception_trace=1
xdebug.idekey= "Phpstorm"
xdebug.remote_enable=1
xdebug.remote_host= localhost
xdebug.remote_port=9000
xdebug.auto_trace=0  error tracking prompt 0 closes, 1 opens
xdebug.trace_output_name=% S.trace.log
xdebug.trace_output_dir= "E:/xdebug/trace"
xdebug.profiler_enable=0
Xdebug.profiler_output _name=%s.profiler.log
xdebug.profiler_output_dir= "E:/xdebug/profiler"

Okay, the last step is to restart Apache. Oh, and then we'll check to see if the Xdebug configuration was successful, and we tested the phpinfo in a PHP ()

If you can see with Xdebug v2.2.5, Copyright (c) 2002-2014 in the screenshot, by Derick Rethans
The code worked.

Now we're going to test a piece of code

Are you telling us the wrong information in great detail?

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.