Xdebug 使 apache 崩溃

发布于 2024-11-14 11:39:24 字数 244 浏览 3 评论 0原文

当我使用 Eclipse 的内部浏览器时,我的 Xdebug 工作正常,但当我在外部浏览器中使用它时,apache 崩溃了。

我在 Windows 7 64 位上使用 xampp。如果有人需要更多信息,请告诉我。

由于某种原因,如果我在 Eclipse 的 php 调试器中打开变量选项卡,它会使 apache 崩溃。因此,为了阻止它,我在调试时无法打开变量选项卡。所以这可以避免问题,但不能解决问题。我希望能够拥有这个选项卡。有什么建议吗?

My Xdebug works fine when I use eclipses' internal browser but when I use it in an external browser apache crashes.

I am using xampp and on windows 7 64 bit. If someone needs more information let me know.

For some reason if I have the variables tab open in the php debugger in eclipse it crashes apache. So to stop it I just can't have variables tab open while debugging. So this avoids the problem but doesn't fix it. I would like to be able to have this tab. Any suggestions?

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

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

发布评论

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

评论(4

沫尐诺 2024-11-21 11:39:24

XDebug 构建和类型可能与您的 apache & 不匹配。 php 构建和类型...

使用 VS.NET 2008 (VC9) 编译 32 位并使用 PHP 作为模块需要 XDebug:32 位、VC9、线程安全。

http://xdebug.org/download.php

另外,您可以测试 XDebug 附带的另一个 WAMP 包(例如 WampDeveloper),如果它也不适用于您,则可能不是构建不匹配问题。

It is possible that the XDebug build and type does not match your apache & php build and type...

Apache compiled with VS.NET 2008 (VC9) for 32bit and using PHP as a module would require XDebug: 32bit, VC9, Thread Safe.

http://xdebug.org/download.php

Also, you could test another WAMP package that comes with XDebug (for example WampDeveloper) and if it also does not work for you, it's probably not a build mismatch issue.

飘落散花 2024-11-21 11:39:24

嘿,我得到了这个工作

Eclipse 3.6.1 (因为在更高版本上,用于放置行注释的快捷键不起作用)
克安普 1.7.4
Xdebug 2.1.2

技巧是将php从VC6更改为VC9,然后它就可以正常工作了。
顺便提一句。正是变量面板导致 xdebug 在 php VC6 上使 apache 崩溃。

请记住为新 php 获取 VC9 版本的 xdebug,并且如果您将新 php 放在除以下目录之外的目录中
\xampp\php,然后在 phpinfo() 上;你会看到没有加载 php.ini,所以只需重命名旧的 php(你可以随时将它们从一个切换到另一个)并将新的 php 放在原始 php 所在的同一目录中“\xampp\php”并复制你的 php.ini (因为路径不会改变)。还记得获取您在 VC9 版本中为新 php 使用的任何其他 php 扩展,并将它们放在“\xampp\php\ext”中

Hey I got this working

Eclipse 3.6.1 (because on later versions key shortcut for putting line comment don't work)
Xampp 1.7.4
Xdebug 2.1.2

The trick is to change php from VC6 to VC9 and then it just works correctly.
BTW. It's the variables panel that causes xdebug to crash apache on php VC6.

Remember to get VC9 version of xdebug for new php AND if you put your new php in directory other than
\xampp\php, then on phpinfo(); you'll see that there's no php.ini loaded so just rename old php (co you can swich them from one to other anytime) and put new php in the same directory in which original php was in "\xampp\php" and copy your php.ini (because paths doesn't change). Also remember to obtain any additional php extensions you've been using in VC9 version for new php and put them in "\xampp\php\ext"

青巷忧颜 2024-11-21 11:39:24

我可以证实 t0meck 所说的大部分内容。除了我已经升级到 xampp-win32-1.7.7-VC9,它有 PHP 5.38。将 phpinfo() 结果传送到 Xdebug 的 自定义安装分析器,它指定了 php_xdebug-2.1。 2-5.3-vc9.dll,但问题并未完全消除。正如我在“自我笔记”页面中记录的那样,以下内容对我有用。

执行上述过程后,“运行方式”应该在第一次尝试时可以工作,但“调试方式”可能会在每次尝试时使 Apache 崩溃。这是一个让许多人严重分心的问题。使用调试视角暴露了一个明显的错误。透视图的顶部中心是一个带有两个选项卡的窗口,即变量视图和断点视图。通常,Apache 仅在突出显示变量视图时才会崩溃,因此请突出显示断点视图。然后在您的项目上设置断点。现在,如果您是被选中的人之一,您将能够使用调试器单步执行脚本,但是当您切换到变量视图时,它仍然可能使 Apache 崩溃。真是太累了。重复该过程,下次您应该真正看到变量时,问题就会神奇地消失,直到您重新启动项目。只要重复这个过程,就可以成为幸运儿之一。

I can confirm most of what t0meck said. Except I've moved up to xampp-win32-1.7.7-VC9 which has PHP 5.38. Taking the phpinfo() results from that to Xdebug's custom installation analyzer, it specifies the php_xdebug-2.1.2-5.3-vc9.dll, but the problem isn't entirely eliminated. As I've documented in my 'notes to self' page, the following is working for me.

After following the above procedure, the 'run as' should work on the first try, but the 'debug as' may crash Apache at every attempt. This is an issue that has driven many people to severe distraction. There is an apparent bug exposed using the debug perspective. At the top center of the perspective is a window with two tabs, the variable view and the breakpoint view. Usually, Apache crashes only when the variable view is highlighted, so highlight the breakpoint view instead. Then set a breakpoint on your project. Now, if you are one of the chosen, you will be able to step through the script using the debugger, but when you switch to the variable view it may still crash Apache. What a drag. Repeat the process and the next time you should actually see the variables and the problem will magically go away, until you restart the project. Just repeat the procedure and be satisfied with being one of the lucky ones.

伴梦长久 2024-11-21 11:39:24

不知道这是否有帮助,我有同样的问题,但它与变量视图中的数组深度 xdebug > 句柄有关。你可以改变它。威德诺>首选项> PHP>调试> >已安装调试> X调试>配置放大“最大阵列深度”解决了我的问题。

http://bugs.xdebug.org/view.php?id=658#c1767

只需将其设置为 10 或更大,它就应该可以工作

Don't know if this help, I have same kind of issue, but it relate to array depth xdebug >handle in Variables view. And you can change it. Widnow > Preferences > PHP > Debug > >Installed Debug > Xdebug > Configure enlarge the "Max array depth" solved my issue.

http://bugs.xdebug.org/view.php?id=658#c1767

Just set it to 10 or bigger and it should work

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