PhpStorm调试程序报错Error running ‘xx’: Debugger extension is not detected


PhpStorm调试程序报错Error running 'xx': Debugger extension is not detected
这个问题困扰我很久了,当使用PHP Script方式调试程序时,明明Run/Debug Configuration中配置了解释器,而且对应的解释器也安装了xdebug的扩展,依然报这个错误。无论怎么弄都没效果

解决这个问题也很简单,在Settings > Languages & Frameworks > PHP中修改 CLI Interpreter中配置默认的解释器,这个解释器配置了xdebug即可。

Archives