Heim  >  Artikel  >  Backend-Entwicklung  >  PHP 配置xdebug就是不行?

PHP 配置xdebug就是不行?

WBOY
WBOYOriginal
2016-06-23 13:48:491037Durchsuche

我安装了EPP3和PHP5.4.5,想配置xdebug来调试,按照网上的就是不行,用phpinfo()测试xdebug就是不出来。感觉PHP本身不难,这些开发环境有时候配置真麻烦。我的配置如下:
;onload Xdebug
zend_extension_ts="C:/php5/ext/php_xdebug-2.2.1-5.4.dll"
;xdebug configuration

[Xdebug] 

xdebug.auto_trace = On 

xdebug.show_exception_trace = On 

xdebug.remote_autostart = On

xdebug.remote_enable = On 

xdebug.collect_vars = On 

xdebug.collect_return = On 

xdebug.collect_params = On


回复讨论(解决方案)

我能说我也有同样的问题!!

我也有这样的问题!!!!

我也碰到了, 但我解决了, 网上的教程,写的一般。 我写一下, 虽然我实现了xdebug可以显示在phpinfo上,EPP也可以启动xdebug 的perspective了,但EPP调试的时候,不能点下一步单步调试。现在还在研究中。

我的办法,参照教程 http://blog.csdn.net/zuike/article/details/6095341, 这个教程写的不对的地方,就是没写xdebug.dll拷贝到哪里,应该拷贝php\ext下面和别的dll文件放在一起,只有这样,才能phpinfo显示。 大家都以为是拷贝到教程最底部那个目录,是不行的。此外,xdebug.dll下载的时候,我试过了,对于PHPnow的APACHE 2版本, 只能下载 XDEBUG.DLL 2.2.2版本, 如果是2.2.3版本拷贝到php ext下,是无法phpinfo显示的,就不能用。  

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn