Xdebug 由 PHPStorm 中的代码嗅探器触发 [英] Xdebug triggered by Code Sniffer in PHPStorm

查看:24
本文介绍了Xdebug 由 PHPStorm 中的代码嗅探器触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 xdebug 和 Code Sniffer 在我的 PHPStorm 安装中都运行良好,但真正令人讨厌的部分是调试器现在似乎将 Code Sniffer 错误视为断点并中断代码以让我知道样式警告,同时我正在尝试测试代码.如何防止代码嗅探器被 PHPStorm 中的远程调试器捕获?

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:我正在运行 Apache,使用虚拟主机将某些 URL 映射到我计算机上的文件夹,并且代码嗅探器从未明确触发 PHPStorm 的远程调试器,而我的站点导致 PHPStorm 询问我是否要包含它的虚拟 URL用于调试.

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.

推荐答案

我遇到了类似的问题,我是这样解决的:- 转到项目设置"->PHP"->调试"- 在XDebug"下,我取消了两个Force ..."选项.

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.

希望它对你有用.

这篇关于Xdebug 由 PHPStorm 中的代码嗅探器触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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