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

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

问题描述

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



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



如果有帮助,这里是phpinfo的xdebug部分(两部分);
http://cl.ly/9QHw http://cl.ly/9P2B ,证明它在phpStorm中被禁用: http://cl.ly/9Qu8



是否有需要更改的xdebug设置?当我进行升级,我失去了我的php.ini有一些其他的xdebug配置。

解决方案

上面没有为我工作,因为我可以告诉你是否使用Xdebug唯一的调试书签你得到的是启动/停止并调试此页面。我没有看到任何特别停止在第一行的书签,而且PHPStorm中的启动/停止书签还是停止PHPStorm都无法收听。



让它停止我(在OS X上):


  1. 转到首选项>语言和框架> PHP>调试

  2. 取消选中第一行强制中断选项

  3. 申请并关闭

  4. 在运行菜单中,取消选中PHP脚本中的第一行中断


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 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.

If it helps, here is the xdebug portion of phpinfo (in two parts); http://cl.ly/9QHw , http://cl.ly/9P2B and the proof it is disabled in phpStorm: http://cl.ly/9Qu8

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.

解决方案

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.

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

  1. Go to Preferences > Languages & Frameworks > PHP > Debug
  2. Uncheck both of the 'force break at the first line...' options
  3. Apply and close
  4. In the Run menu, uncheck 'Break at the first line in PHP scripts'

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

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