坦率-LY,我也有2非常糟糕的日子,我现在该怎么办终于修好了没有, 所以这里是我做的和陷阱的集合:
; this is the thread safe version,
; the absence of _nts_ in the dll name 'shows' this
; do not use _ts, your library won't get registered and won't show in phpInfo()
zend_extension = "D:/wamp/bin/php/php5.3.8/zend_ext/php_xdebug-2.1.2-5.3-vc9-x86_64.dll"
检查你的php.ini,检查phpinfo()函数,如果所有的值(到达)
xdebug.remote_enable = on
xdebug.remote_handler=dbgp
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
; if you have multiple virtual hosts (like 'local.fooclient')
; maybe using the IP is safer (for any same-machine-debugging)
xdebug.remote_host=127.0.0.1
; maybe a -much- lower port helped, 84 was free. use netstat to figure out.
xdebug.remote_port=84
; idekey! also see note below
xdebug.idekey=netbeans-xdebug
更多陷阱:
我见过xdebug.remote的错字(无r)在网上多次。谨防。
关于idekey的说明:上述idekey确实在phpinfo()中显示为主值,但是使用像MYMACHINENAME $这样的“本地值”覆盖了 。 ==>设置名为DBGP_IDEKEY的全局env var(在计算机属性中)并重新启动(或者只是注销)到(也)netbeans-xdebug帮助!再次:重新检查phpInfo()是否生效。
当然调整netbeans的菜单:选项 - > PHP标签 - >调试节到此端口和会话ID。
Here是一个脚本,以检查(由PHP意味着)如果你打算跟该端口是开放的。 (在下面的评论中也有进一步的说明,对于那些懒惰的人也可以从图像中删除)
为了让浏览器连接起来,不要开始忘记(在沮丧中)始终附加调试开始的get参数:
http://localhost/myTest.php?XDEBUG_SESSION_START=netbeans-xdebug
在口边防,也this tool可能的帮助。
Quadruplecheck你正在保持VC6和VC9编译版本的一切。
从命令行运行您的whatever/path/php.exe myTest.php
(一旦完成上述设置)可能还会显示其他错误(它的确如此,而我正在修补一个不正确的dll)。
我可以推荐http://www.wampserver.com (因个人原因,它适合我比流行的XAMPP包好...)
线程安全已启用。 PHP符合VC6。我抓住了线程安全的5.3 VC6,并没有加载32位风格和64位风格。但是,Apache不会再崩溃了。 – Derek 2009-12-14 23:24:55
这是有帮助的,我有PHP 5.4,但试图安装5.3 DLL虽然没有给出错误。 – Nap 2013-05-23 04:21:57