`
radzhang
  • 浏览: 301925 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

XDEBUG对ThinkPHP项目的调试设置

 
阅读更多

用的是xamp,直接php.ini里面的;zend_extension = "D:\xampp\php\ext\php_xdebug.dll"把注释去掉。

然后相关参数设定好,注意两个参数

xdebug.remote_autostart=On必须为On,要不Eclipse不会自动进入断点。

xdebug.collect_return=Off必须为Off,或者不设定,要不Thinkphp一直死循环在入口index.php

 

xdebug.auto_trace = On

xdebug.show_exception_trace = On

 

xdebug.profiler_append = 0

xdebug.profiler_enable = 1

xdebug.profiler_enable_trigger = 0

xdebug.profiler_output_dir = "D:\xampp\tmp"

xdebug.profiler_output_name = "cachegrind.out.%t-%s"

xdebug.remote_enable = On

xdebug.remote_autostart=On

xdebug.remote_handler = "dbgp"

xdebug.remote_host = "127.0.0.1"

xdebug.remote_port=9000

xdebug.trace_output_dir = "D:\xampp\tmp"

 

然后可以通过phpinfo.php看xdebug是否正常enable了。

 

1.Eclipse里要注意的设定:设定默认PHP Web Server要选上xdebug


 

2.新加一个php executables,指向php安装的目录。



 

3.execution Environments里给各个PHP Vesion选择前面新加的Executables。并勾上。


 

4.设定Debug。

 

5.设置断点,在浏览器上输入要调试的网站,就oK了。 

 

 

 

 

 

  • 大小: 108 KB
  • 大小: 77.7 KB
  • 大小: 111.9 KB
  • 大小: 139 KB
  • 大小: 91.7 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics