ubuntu - Sublime Text 3 : XDebug does not stop in breakpoints anymore

标签 ubuntu sublimetext xdebug sublimetext3 ubuntu-14.04

遵循本教程后它曾经可以工作: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/

相关文章:

docker - 无根模式 Docker 守护程序在重新登录 (SSH) 后未运行

sublimetext2 - 限制 Sublime Text 2 中的文件搜索范围

windows - 拖放 'n' 对我的 sublime text 2 安装不起作用

sublimetext - 最近 sublime text 更新后光标特别高并且不闪烁

xdebug - 如何在 MAC High Sierra 标准安装中使用 xdebug

php - Visual Studio Code 调试数组评估

python - 如何检测 Ubuntu 版本?

c - watch 不会停在指定地址

C++17 根据文件路径自动创建目录

nginx - Xdebug 与 PHPStorm 和 Docker 容器