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 as well as Xdebug, and to see if your PHP is thread-safe or non-thread-safe, otherwise it will not work.

After downloading the php_xdebug.dll 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 after the change, add the following code

The 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 trace prompt 0 off, 1 open 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, we tested it in a PHP phpinfo ()

If you see with Xdebug v2.2.5 at the place, Copyright (c) 2002-2014, by Derick Rethans the code is successful.

Now let's test a piece of code

is not very detailed to tell us the wrong message.

Introduction to Xdebug Configuration installation steps in PHP5

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.