无法将我的 xampp 设置为与任何 php 调试器一起使用

发布于 2024-08-16 05:38:45 字数 580 浏览 4 评论 0原文

我一直在尝试将我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

夜无邪 2024-08-23 05:38:45

如果 xamp\apache\bin 中没有 php.ini,您可能需要将正在处理的文件复制到该文件夹​​中。

在浏览器中检查 phpinfo() 的输出以了解 apache 正在使用什么 php.ini 也可能会有所帮助。它将在页面的第一个块表中标记为“已加载配置文件”。确保您正在编辑的 php.ini 文件是此处列出的文件。

另外,我建议不要在文件路径中混合 / 和 \:

zend_extension_ts="C:\Program Files\Development\xampp\php\ext\php_xdebug-2.0.5-5.2.dll"

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:

zend_extension_ts="C:\Program Files\Development\xampp\php\ext\php_xdebug-2.0.5-5.2.dll"
未蓝澄海的烟 2024-08-23 05:38:45

如果您转到此处,您将看到 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

思念满溢 2024-08-23 05:38:45

尝试删除“zend_extension_ts”并尝试“zend_extension”。我发现了各种不同的解释(线程服务器与非线程服务器调试构建与常规构建)。

还要确保您没有在其他任何地方使用“extension=”行加载它。

看到它时,您就会知道它已加载。

        This program makes use of the Zend Scripting Language Engine:
        Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
            with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans  

当您在 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

        This program makes use of the Zend Scripting Language Engine:
        Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
            with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans  

in your phpinfo() output.

野稚 2024-08-23 05:38:45

关于这个问题还有更多信息吗?

我还运行 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文