使用 Xdebug 和 同时使用 Zend 调试器?

发布于 2024-07-07 06:18:42 字数 201 浏览 8 评论 0原文

是否可以在同一个 PHP 安装中同时运行两个调试器。 它们都使用不同的端口,因此与客户端 IDE/其他应用程序的通信不会出现问题。

我这么问只是因为事实证明,将 Zend 调试器与 ZendStudio 结合使用要容易得多(从浏览器启动/停止调试的步骤更少),但我真的很喜欢一些仅适用于 XDebug 的分析工具。 简而言之,如果可能的话,我希望能够两全其美。

Is it possible to run both debuggers within the same PHP installation simultaneously. They both use different ports so communication with the client IDEs/other apps wouldn't be an issue.

I ask only because using the Zend Debugger with ZendStudio has proven to be much easier (fewer steps to start/stop debugging from the browser), but I really like some of the profiling tools available that only work with XDebug. So in a nutshell, I would love to be able to have the best of both worlds if possible.

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

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

发布评论

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

评论(3

十年不长 2024-07-14 06:18:43

http://www.suspekt.org/2008/08/ 04/xdebug-203-stealth-patch/(特别是最后一条评论)似乎表明,安装了补丁后,Xedebug 的分析部分将与 Zend Debugger 一起正常工作。

http://www.suspekt.org/2008/08/04/xdebug-203-stealth-patch/ (in particular the last comment) seems to indicate that the profiling parts of Xedebug will work fine alongside Zend Debugger, with the patch installed.

伴梦长久 2024-07-14 06:18:43

这是可能的 - 在开发 Web 服务器上最简单的方法是运行 2 个不同的 apache 进程,其中不同的 php.ini 文件引用不同的调试器模块

It is possible - the simplest way on a development web server would be to run 2 different apache processes with different php.ini files referencing the different debugger modules

夜空下最亮的亮点 2024-07-14 06:18:43

因此,众所周知,XDebug 不能与许多 Zend 工具一起使用(我肯定知道 Zend Optimizer,我不知道 Zend Debugger,但如果 XDebug 有内置的检查功能,我不会感到惊讶)。

由于您在开发计算机上运行调试器和分析器,我不明白为什么您不能维护两个单独的 ini 文件。 否则,您将不得不编译自己的自定义版本来绕过检查。

So, XDebug is known not to work with many Zend tools (I know Zend Optimizer for certain, I don't know about Zend Debugger but I wouldn't be surprised if XDebug has a built-in check for that).

Since you're running the debugger and profiler on a dev machine, I don't see why you can't maintain two separate ini files. Otherwise, you'll have to compile a custom version of yourself that bypasses the checks.

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