如何使用 Eclipse PDT 和 XAMPP 安装 XDebug

发布于 2024-10-30 06:13:42 字数 78 浏览 9 评论 0原文

有人可以告诉我如何安装 XDebug 并将其与我现有的 XAMPP 和 Eclipse PDT 集成。谢谢。

Can someone please tell me How can I install XDebug and integrate it with my existing XAMPP and Eclipse PDT. Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

一花一树开 2024-11-06 06:13:42

此站点经历了非常彻底的安装过程。它说明了如何安装 XDebug,以及如何将其与 Eclipse 集成。然而,唯一的缺失是 php.ini 配置。如果您使用它提供的那个,XDebug 将无法正确加载。我建议这样:

[XDebug]
;; Only Zend OR (!) XDebug
; Modify the filename below to reflect the .dll version of your xdebug
zend_extension="C:\xampp\php\ext\php_xdebug-2.1.1-5.3-vc9.dll"
xdebug.remote_enable=1
xdebug.remote_host=localhost  ; if debugging on remote server,
                      ; put client IP here
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_name = "xdebug_profile.%R::%u"
xdebug.trace_output_dir = "C:\xampp\tmp"

This site goes through a very thorough installation process. It says how to install XDebug, and how to integrate it with Eclipse. The only miss, however, is the php.ini configuration. If you use the one it gives you, XDebug will not be loaded properly. I would suggest this:

[XDebug]
;; Only Zend OR (!) XDebug
; Modify the filename below to reflect the .dll version of your xdebug
zend_extension="C:\xampp\php\ext\php_xdebug-2.1.1-5.3-vc9.dll"
xdebug.remote_enable=1
xdebug.remote_host=localhost  ; if debugging on remote server,
                      ; put client IP here
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_name = "xdebug_profile.%R::%u"
xdebug.trace_output_dir = "C:\xampp\tmp"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文