Xdebug triggered by Code Sniffer in PHPStorm

非 Y 不嫁゛ 提交于 2019-12-06 08:02:52

问题


I have both xdebug and Code Sniffer working great on my installation of PHPStorm, but the one really annoying part is that the debugger now seems to be treating Code Sniffer errors as breakpoints and interrupts the code to let me know of style warnings while I'm trying to test out code. What can I do to prevent Code Sniffer from being caught by the remote debugger in PHPStorm?

PS: I'm running Apache, using virtual hosts to map certain URLs to folders on my computer, and code sniffer never triggered PHPStorm's remote debugger explicitly, while my site caused PHPStorm to ask me if I wanted to include it's virtual URL for debugging.


回答1:


I had a similar problem and I solved it like this: - went to "Project settings" -> "PHP" -> "Debug" - under "XDebug" I unchecked the two "Force ..." options.

Hope it does the trick for you.



来源:https://stackoverflow.com/questions/11528022/xdebug-triggered-by-code-sniffer-in-phpstorm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!