phpstorm xdebug

Posted 伊人世界

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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-23\\xampp2\\php\\ext
Edit D:\\win10-2016-2-23\\xampp2\\php\\php.ini and add the line
zend_extension = D:\\win10-2016-2-23\\xampp2\\php\\ext\\php_xdebug-2.4.1-5.6-vc11-x86_64.dll

php.ini  中xdebug的端口要和phpstarm中xdebug的端口要一致
;Xdebug
;zend_extension = "D:\\win10-2016-2-23\\xampp2\\php\\ext\\php_xdebug-2.4.1-5.4-vc9.dll"
;zend_extension = "${path}\\xdebug\\php_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-23\\xampp2\\xdebug\\trace"
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-23\\xampp2\\xdebug\\profiler"
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

 

以上是关于phpstorm xdebug的主要内容,如果未能解决你的问题,请参考以下文章

PHPStorm+XDebug进行调试

mac phpstorm xdebug启动失败怎么解决

『PHP』手把手教你使用phpstorm+xdebug调试php代码(保姆级教程)

PHPStorm + Homestead + Xdebug + Chrome Xdebug Helper 调试配置

Phpstorm+Xdebug断点调试PHP

Xdebug+phpStorm安装与调试保姆级教程!『通俗易懂』