今天设置在zend studio中使用xDebug进行调试,发现debug时断点无效。
查找方向,是调试端口不匹配造成的。
在php.ini文件中:
xdebug.remote_port=11115
而在zend studio中,xDebug默认是9000,需要修改,方法如下:
window->preferences->PHP->Debug->installed debugger,修改xDebug的端口为11115
再试即可。
本文介绍了解决zendstudio中使用xDebug调试时遇到的断点失效问题的方法。问题出现的原因在于php.ini配置文件中xdebug.remote_port设置的端口与zendstudio中默认的xDebug端口不一致。通过将zendstudio中的xDebug端口修改为与php.ini配置文件中相同的端口11115,问题得以解决。
今天设置在zend studio中使用xDebug进行调试,发现debug时断点无效。
查找方向,是调试端口不匹配造成的。
在php.ini文件中:
xdebug.remote_port=11115
而在zend studio中,xDebug默认是9000,需要修改,方法如下:
window->preferences->PHP->Debug->installed debugger,修改xDebug的端口为11115
再试即可。
846

被折叠的 条评论
为什么被折叠?