在 Ubuntu 14.04 中使用 XAMPP 进行 Xdebug [英] Xdebug with XAMPP in Ubuntu 14.04

查看:26
本文介绍了在 Ubuntu 14.04 中使用 XAMPP 进行 Xdebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

系统配置

Ubuntu 14.04

Xampp v 5.6.3

安装 php5-dev 在 xampp 上

sudo/opt/lampp/lampp start

现在想安装 本身警告不要这样做

<块引用>

注意:您应该忽略任何将extension=xdebug.so"添加到 php.ini 的提示——这会导致问题.

System Configuration

Ubuntu 14.04

Xampp v 5.6.3

installed php5-dev after xampp on

sudo /opt/lampp/lampp start

now want to install Xdebug wihin xampp and I tried available 3 method but nothing is working out , please see the whole process.

1)Ubuntu software package

 sudo apt-get install php5-xdebug

command exceuted successfully but no such file in .usr/lib/php5/...

uninstalled

2)Tailored Installation Instructions

downloaded xdebug.tar.gz after checking with wizard

 ice@cold:~/Downloads/xdebug-2.2.6$ /usr/bin/phpize5 

/usr/bin/phpize5 Cannot find config.m4.
Make sure that you run '/usr/bin/phpize5' in the top level source directory of the module

also tried with phpize, /opt/lampp/bin/phpize but not working out

3)PECL Installation

before that let me check with pecl help version

PEAR Version: 1.9.4
PHP Version: 5.5.9-1ubuntu4.5 Zend Engine Version: 2.5.0
Running on: Linux ice-cold 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64

pecl install xdebug

...
...
Build process completed successfully
Installing '/usr/lib/php5/20121212/xdebug.so'
install ok: channel://pecl.php.net/xdebug-2.2.6
configuration option "php_ini" is not set to php.ini location
You should add "zend_extension=xdebug.so" to php.ini

executed completely

I can see the file

644 /usr/lib/php5/20121212/xdebug.so

added below line in /opt/lampp/etc/php.ini

[xdebug]
zend_extension="/usr/lib/php5/20121212/xdebug.so"

restart lampp

but still xdebug icon is missing

Please tell me what is wrong

解决方案

edited in /opt/lmapp/etc/php.ini assigned the location of xdebug.so to zend_extension

[xdebug]
zend_extension="/usr/lib/php5/20121212/xdebug.so"

Replace with

[xdebug]
zend_extension="xdebug.so"

and restart lampp and Xdebug is installed.

AS I was not doing this before because Xdebug Docs itself warn not to do this

Note: You should ignore any prompts to add "extension=xdebug.so" to php.ini — this will cause problems.

这篇关于在 Ubuntu 14.04 中使用 XAMPP 进行 Xdebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆