无法将我的 xampp 设置为与任何 php 调试器一起使用
我一直在尝试将我的 XAMPP 设置为与 xdebug php 调试器一起使用,我使用以下参数编辑了 php.ini 文件:
zend_extension_ts="C:\Program Files\Development\xampp\php\ext/php_xdebug-2.0.5-5.2.dll"
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
重新启动服务器后,phpinfo() 仍然没有显示 xdbug 的任何迹象。
一般来说,我的 php.ini 看起来与我记忆中的有点不同,其中没有 [zend] 部分。 另一个奇怪的事情是所有教程都讨论位于以下位置的 php.ini 文件 xampp\apache\bin\php.ini,但那里没有这样的文件。我唯一的 php.ini 文件位于 xampp\php 目录中。
我已经重新安装了 xampp,文件看起来仍然相同。
我正在使用 XP,使用最新的 xampp 1.7.2
请告知 谢谢
i have been trying to set my XAMPP to work with xdebug php debugger, i have edited the php.ini file with the following parameters:
zend_extension_ts="C:\Program Files\Development\xampp\php\ext/php_xdebug-2.0.5-5.2.dll"
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
after restarting the server the phpinfo() still is not showing any sign of the xdbug.
in general my php.ini looks a little bit different from what i have remembered, there is no [zend] section in it.
another wierd thing is that all the tutorials talk about a php.ini file that is located in
xampp\apache\bin\php.ini, but there is no such file there. the only php.ini file i have is located at xampp\php directory.
i have reinstalled the xampp again and the files still looks the same.
i am using XP using the latest xampp 1.7.2
please advise
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果 xamp\apache\bin 中没有 php.ini,您可能需要将正在处理的文件复制到该文件夹中。
在浏览器中检查 phpinfo() 的输出以了解 apache 正在使用什么 php.ini 也可能会有所帮助。它将在页面的第一个块表中标记为“已加载配置文件”。确保您正在编辑的 php.ini 文件是此处列出的文件。
另外,我建议不要在文件路径中混合 / 和 \:
If you don't have a php.ini in xamp\apache\bin, you may need to copy the one you're working on to that folder.
It may also be helpful to check the output of phpinfo() in a browser to see what php.ini is being used by apache. It will be labeled "Loaded Configuration File" in the first block table on the page. Make sure that the php.ini file you are editing is the one listed there.
Also, I'd suggest not mixing / and \ in a file path:
如果您转到此处,您将看到 xdebug dll 的所有可用版本。最近的是
php_xdebug-2.0.5-5.2.dll - 实际上在 xampp(lite) 下工作的是 php_xdebug-2.0.0-5.2.2 .dll ..自从回到旧版本后,我在 Eclipse 中可靠地调试 PHP,就像它的 Visual Studio
顺便说一句——我使用 xampp 1.7.1,因为 1.7.2 有 php 5.3,但它不起作用在 Windows 7 下以 CLI 模式可靠运行
if you go here you will see all available versions of xdebug dll .. the most recent is
php_xdebug-2.0.5-5.2.dll - the one that actually WORKS under xampp(lite) is php_xdebug-2.0.0-5.2.2.dll .. Since moving back to that older version, i am reliably debugging PHP in Eclipse like its visual studio
BTW -- i am using xampp 1.7.1 because 1.7.2 has php 5.3 and that doesn't work in CLI mode reliably under Windows 7 at the mo
尝试删除“zend_extension_ts”并尝试“zend_extension”。我发现了各种不同的解释(线程服务器与非线程服务器, 调试构建与常规构建)。
还要确保您没有在其他任何地方使用“extension=”行加载它。
看到它时,您就会知道它已加载。
当您在 phpinfo() 输出中
Try removing "zend_extension_ts" and try "zend_extension". I've found various different explanations as to why (threaded server vs non, debug build vs regular).
Also ensure you are not loading it with an 'extension=' line anywhere else.
You will know it's loaded when you see
in your phpinfo() output.
关于这个问题还有更多信息吗?
我还运行 xampp 1.7.2 版本,使用 PHP5.3 和 NetBeans 6.8,并始终收到“发生套接字异常”错误,并建议删除监视。没有手表的调试是相当无聊的!
SpecialOne - 你被排序了吗?
Is there any more info around re this issue?
I also am running xampp 1.7.2 build, with PHP5.3 and NetBeans 6.8 and consistently get 'Socket Exception Occurred' error with advice to remove watches. Debugging without watches is pretty boring!
SpecialOne - did you get sorted?