安装了 Xdebug,在 Linux Mint11 上无法工作
我正在尝试跨入 mint11,但 xampp 安装让我头疼!
所以我安装了xampp,然后通过xdebug页面安装了xdebug(我进行了定制安装,所以我的xdebug文件没问题)。我尝试在 NetBeans 中进行调试,但没有任何结果,它说正在等待连接。我可以看到它是通过 phpinfo() 安装的,但是当我尝试点击
$php -i | grep xdebug
输出时,告诉我 remote_enabled
已关闭,尽管我在 php.ini 中对其进行了编辑。 另外,我一开始就明白了:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysql.so' - /usr/lib/php5/20090626+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysqli.so' - /usr/lib/php5/20090626+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_mysql.so' - /usr/lib/php5/20090626+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
/etc/php5/cli/conf.d/xdebug.ini
I'm trying to cross to mint11, but xampp installation is giving me a headache!!
So I installed xampp, then installed xdebug, via xdebug pages, (i went with tailored installation, so my xdebug file is ok). I try to debug in NetBeans and nothing, it says waiting for connection. I can see that it is installed via phpinfo(), but when i try to hit
$php -i | grep xdebug
the output tells me that remote_enabled
is off, although i edited it in php.ini.
Also, i get this in the beginning :
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysql.so' - /usr/lib/php5/20090626+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysqli.so' - /usr/lib/php5/20090626+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_mysql.so' - /usr/lib/php5/20090626+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
/etc/php5/cli/conf.d/xdebug.ini
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要启用该
remote_enabled
设置,否则它将无法与 NetBeans 一起使用。您很可能正在编辑错误的 php ini 文件。
您看到的 mysql*.so 错误很可能与 xdebug 无关,请找到扫描的各个 .ini 文件中的行并注释这些行,这样您就不会因该错误而分心。
然后找到配置 xdebug 的正确位置,最有可能在:
You need to enable that
remote_enabled
setting, otherwise it won't work with NetBeans.It's most likely you are editing the wrong php ini file.
The
mysql*.so
errors you see are most likely not related to xdebug, locate the lines in the diverse .ini files that are scanned and comment those so you don't get distracted by that error.Then locate the right place where to configure xdebug, most likely in: