dtyrxmoj20617 2012-02-06 11:33
浏览 93
已采纳

无法配置Xdebug

I've installed PHP 5.3.8 on my localhost and I tried to configure Xdebug, but for some reason, Xdebug doesn't seem to work. I've added following lines to my php.ini file:

zend_extension = C:\Server\PHP\5.3.8\ext\php_xdebug-2.1.3-5.3-vc9.dll
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=”dbgp”

And of course, the file in the zend_extension path is exists. And I also have tried restarting my Apache.
Is there a specific type of Xdebug for every version of PHP or is this just a matter of a bad configuration?

EDIT:
I've tried every 2.1.3 and 2.1.2 dll available on the Xdebug site, but none of them seems to work...

EDIT 2: Ok, great, I just got the latest Xdebug version working, but my var_dump's still look awful... Here is what they look like:

array(3) { [0]=> string(4) "text" [1]=> string(4) "node" [2]=> string(6) "blabla" }

But they used to look like this:

array(3) 
    0 => 'text' string(4) 
    1 => 'node' string(4)
    2 => 'blabla' string(6)

How do I get them to look like this?

  • 写回答

3条回答 默认 最新

  • dongxun7962 2012-02-06 12:28
    关注

    Xdebug has a fantastic phpinfo() output parser which determines exactly what version of Xdebug you need and even gives you personalised instructions based on this. Simply visit:

    http://xdebug.org/find-binary.php

    and you'll be up and running in no time.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!