遵循本教程后它曾经可以工作:http://www.sitepoint.com/debugging-xdebug-sublime-text-3/
现在,如果我设置一个断点,它就不起作用了。但是,正如我发现的 here , 如果 它确实有效我添加以下代码行:
xdebug_break();
我在 Ubuntu 14.04 LTS 上。我认为它在我休眠系统而不停止 XDebug session 后停止工作。我已经重新启动了系统。会发生什么?
最佳答案
在我将 zend_extension 行添加到我的 xdebug.ini 后,它就开始工作了。这是文件的全部代码:
zend_extension=/usr/lib/php5/20121212/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_log="/var/log/xdebug/xdebug.log"
不知道为什么它以前没有那条线工作。可能是因为以下原因:
我的 XDebug 具有以下配置:
xdebug.remote_host=127.0.0.1
然而 Apache2 说:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
最后,要找到我的 xdebug.so 的位置,我键入:
cd /usr/lib/php5/
find . -name \*xdebug\*
关于ubuntu - Sublime Text 3 : XDebug does not stop in breakpoints anymore,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27443695/