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