phpstorm xdebug

http://www.cnblogs.com/jsn521/p/3399997.html
如果extension_dir  里面配置了插件库的路径  zend_extension = "php_xdebug-2.4.1-5.6-vc11-x86_64.dll" 就可以不用写全路径了

https://xdebug.org/wizard.php
将 phpinfo里面的信息复制到这个网址就可以查看自己 需要下载的xdebug的版本
查看xdebug模块是否被apache加载进去
     cmd,进入到php.exe的路径执行 php.exe -m 在最后查看是否存在Xdehug

Download php_xdebug-2.4.1-5.6-vc11-x86_64.dll
Move the downloaded file to D:win10-2016-2-23xampp2phpext
Edit D:win10-2016-2-23xampp2phpphp.ini and add the line
zend_extension = D:win10-2016-2-23xampp2phpextphp_xdebug-2.4.1-5.6-vc11-x86_64.dll

php.ini  中xdebug的端口要和phpstarm中xdebug的端口要一致
;Xdebug
;zend_extension = "D:win10-2016-2-23xampp2phpextphp_xdebug-2.4.1-5.4-vc9.dll"
;zend_extension = "${path}xdebugphp_xdebug-2.4.1-5.4-vc9.dll"
zend_extension = "php_xdebug-2.4.1-5.6-vc11-x86_64.dll"
xdebug.default_enable=0
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
xdebug.idekey="PHPSTORM"
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="D:win10-2016-2-23xampp2xdebug	race"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="D:win10-2016-2-23xampp2xdebugprofiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
;/Xdebug
参考链接
   http://www.cnblogs.com/jsn521/p/3399997.html
   http://www.easytd.com/yichangjijin/d_15111008222.html
   https://xdebug.org/wizard.php
原文地址:https://www.cnblogs.com/suxiaolong/p/6042565.html