如何阻止xdebug在PhpStorm的第一行停止? [英] How to stop xdebug from stopping on first line with PhpStorm?

查看:190
本文介绍了如何阻止xdebug在PhpStorm的第一行停止?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到这个奇怪的问题.在更新我的PHP版本之前,我所有的设置都可以正常工作.我使用macports并安装了php5和php5-xdebug端口.

I'm having this weird problem. All my settings used to work OK, until I updated my version of PHP. I use macports and have the php5 and php5-xdebug ports installed.

xdebug正在运行,但是即使我在PhpStorm中禁用了该选项,它也仍在脚本的第一行停止.那里没有断点,并且代码其他部分的断点也可以正常工作.

xdebug is working, but it is stopping on the first line of my script even though I have the option disabled in PhpStorm. There is no breakpoint there, and breakpoints in other parts of the code are working OK.

如果有帮助,这是phpinfo的xdebug部分(分为两部分); > ://dzwonsemrish7.cloudfront.net/items/3K3R2N1f1A190K372n0S/Screen%20shot%202011-08-18%20at%203.06.29%20PM.png?v = 54c8964d https://dzwonsemrish7.cloudfront.net/items /3W2S060I1b0W1q0z0c45/Screen%20shot%202011-08-18%20at%203.07.00%20PM.png?v=85471026

If it helps, here is the xdebug portion of phpinfo (in two parts); https://dzwonsemrish7.cloudfront.net/items/3K3R2N1f1A190K372n0S/Screen%20shot%202011-08-18%20at%203.06.29%20PM.png?v=54c8964d, https://dzwonsemrish7.cloudfront.net/items/0i133s0U430k3u3w3B1E/Screen%20shot%202011-08-17%20at%205.14.25%20PM.png?v=1278da84 and the proof it is disabled in phpStorm: https://dzwonsemrish7.cloudfront.net/items/3W2S060I1b0W1q0z0c45/Screen%20shot%202011-08-18%20at%203.07.00%20PM.png?v=85471026

是否需要更改xdebug设置?进行升级时,我丢失了具有其他xdebug配置的php.ini.

Is there an xdebug setting I need to change? When I did the upgrade, I lost my php.ini that had some other xdebug configuration.

推荐答案

上面的内容对我不起作用,因为据我所知,如果您使用的是Xdebug,则获得的唯一调试书签就是启动/停止和调试.这一页.我没有看到专门用于在第一行停止的小书签,并且启动/停止小书签或停止PHPStorm在PHPStorm中进行侦听都无法解决我的问题.

The above didn't work for me because as far as I can tell if you're using Xdebug the only debug bookmarklets you get is start/stop and debug this page. I don't see any bookmarklet specific to stopping on first line, and neither the start/stop bookmarklets nor stopping PHPStorm from listening within PHPStorm fixed the problem for me.

要使其停止,我在OS X上执行了此操作:

To get it to stop I did this (on OS X):

  1. 转到偏好设置">语言和功能".框架> PHP>调试
  2. 取消选中两个在第一行强制断裂..."选项
  3. 应用并关闭
  4. 在运行"菜单中,取消选中在PHP脚本的第一行中断"

这篇关于如何阻止xdebug在PhpStorm的第一行停止?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆