安装了 Xdebug,在 Linux Mint11 上无法工作

发布于 2024-12-09 05:09:10 字数 1020 浏览 0 评论 0原文

我正在尝试跨入 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

方觉久 2024-12-16 05:09:10

[phpinfo()] 输出告诉我 remote_enabled 已关闭,尽管我在 php.ini 中对其进行了编辑。

您需要启用该 remote_enabled 设置,否则它将无法与 NetBeans 一起使用。

您很可能正在编辑错误的 php ini 文件。

您看到的 mysql*.so 错误很可能与 xdebug 无关,请找到扫描的各个 .ini 文件中的行并注释这些行,这样您就不会因该错误而分心。

然后找到配置 xdebug 的正确位置,最有可能在:

/etc/php5/cli/conf.d/xdebug.ini

the [phpinfo()] output tells me that remote_enabled is off, although i edited it in php.ini.

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:

/etc/php5/cli/conf.d/xdebug.ini
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文