ubuntu 16.04 phpEclipse插件安装及配置Xdebug
2016-09-15 00:18
615 查看
相关环境:
ubuntu16.04
php7.0
Xdebug2.4
PHPEclipse - http://download.eclipse.org/tools/pdt/updates/3.7
help—-install new software
workwith右边——add。输入name和URL.
安装成功后,重启即可。
pdt的快速上手:
http://www.eclipse.org/pdt/help/html/quick_start.htm
但是在建立php工程出现:
The selected wizard could not be started.
Plug-in org.eclipse.php.ui was unable to load class org.eclipse.php.internal.ui.wizards.PHPProjectCreationWizard. An error occurred while automatically activating bundle org.eclipse.php.ui (272).
简单,只要我们新建一个文件夹,在使用这个文件夹作为php工作空间即可
或者:
edemon@linux:/usr/share/applications$ eclipse -clean
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
新选一个工作空间即可。
但不能正常的新建php文件,应该是少了某些步骤
相关URL:
http://www.2cto.com/kf/201406/307800.html http://www.linuxidc.com/Linux/2011-09/43031.htm
tar -zxvf xdebug-2.4.0.tgz -C Xbug2.4 #解压到Xbug2.4
cd Xbud2.4
cd ./Xbug2.4
cd xdebug-2.4.0
sudo apt-get install php7.0-dev
phpize
make ./configure
sudo ./configure
sudo make
make test
sudo make install
sudo cp ~/Downloads/Xbug2.4/xdebug-2.4.0/modules/xdebug.so /usr/lib/php/7.0/
sudo gedit /etc/php/7.0/apache2/php.ini #配置php.ini
加入:
zend_extension = /usr/lib/php/7.0/xdebug.so
sudo /etc/init.d/apache2 restart
打开phpinfo有出现:
相关反馈效果:
但是后来新建工程出现过java.lang.NullPointerException,以及Could not open the editor: The editor class could not be instantiated. 这些问题实在不知怎么解决。。谁能解决它们请留言,谢谢。
ubuntu16.04
php7.0
Xdebug2.4
Eclipse 上装插件
相关URL :PHPEclipse - http://download.eclipse.org/tools/pdt/updates/3.7
help—-install new software
workwith右边——add。输入name和URL.
安装成功后,重启即可。
pdt的快速上手:
http://www.eclipse.org/pdt/help/html/quick_start.htm
但是在建立php工程出现:
The selected wizard could not be started.
Plug-in org.eclipse.php.ui was unable to load class org.eclipse.php.internal.ui.wizards.PHPProjectCreationWizard. An error occurred while automatically activating bundle org.eclipse.php.ui (272).
简单,只要我们新建一个文件夹,在使用这个文件夹作为php工作空间即可
或者:
edemon@linux:/usr/share/applications$ eclipse -clean
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
新选一个工作空间即可。
但不能正常的新建php文件,应该是少了某些步骤
相关URL:
http://www.2cto.com/kf/201406/307800.html http://www.linuxidc.com/Linux/2011-09/43031.htm
安装xdebug
(最开始安装xdebug2.1出现编译错误,换用一个高版本的2.4: )tar -zxvf xdebug-2.4.0.tgz -C Xbug2.4 #解压到Xbug2.4
cd Xbud2.4
cd ./Xbug2.4
cd xdebug-2.4.0
sudo apt-get install php7.0-dev
phpize
make ./configure
sudo ./configure
sudo make
make test
sudo make install
sudo cp ~/Downloads/Xbug2.4/xdebug-2.4.0/modules/xdebug.so /usr/lib/php/7.0/
sudo gedit /etc/php/7.0/apache2/php.ini #配置php.ini
加入:
zend_extension = /usr/lib/php/7.0/xdebug.so
sudo /etc/init.d/apache2 restart
打开phpinfo有出现:
相关反馈效果:
edemon@linux:~/Downloads/Xbug2.4/xdebug-2.4.0$ make testBuild complete.Don't forget to run 'make test'.=====================================================================PHP : /usr/bin/php7.0 PHP_SAPI : cliPHP_VERSION : 7.0.4-7ubuntu2.1ZEND_VERSION: 3.0.0PHP_OS : Linux - Linux linux 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64INI actual : /home/edemon/Downloads/Xbug2.4/xdebug-2.4.0/tmp-php.iniMore .INIs : CWD : /home/edemon/Downloads/Xbug2.4/xdebug-2.4.0Extra dirs : VALGRIND : Not used=====================================================================TIME START 2016-06-08 11:24:21=====================================================================No tests were run.edemon@linux:~/Downloads/Xbug2.4/xdebug-2.4.0$ sudo make installInstalling shared extensions: /usr/lib/php/20151012/ +----------------------------------------------------------------------+ | | | INSTALLATION INSTRUCTIONS | | ========================= | | | | See http://xdebug.org/install.php#configure-php for instructions | | on how to enable Xdebug for PHP. | | | | Documentation is available online as well: | | - A list of all settings: http://xdebug.org/docs-settings.php | | - A list of all functions: http://xdebug.org/docs-functions.php | | - Profiling instructions: http://xdebug.org/docs-profiling2.php | | - Remote debugging: http://xdebug.org/docs-debugger.php | | | | | | NOTE: Please disregard the message | | You should add "extension=xdebug.so" to php.ini | | that is emitted by the PECL installer. This does not work for | | Xdebug. | | | +----------------------------------------------------------------------+edemon@linux:~/Downloads/Xbug2.4/xdebug-2.4.0$ sudo /etc/init.d/apache2 restart[ ok ] Restarting apache2 (via systemctl): apache2.service.
但是后来新建工程出现过java.lang.NullPointerException,以及Could not open the editor: The editor class could not be instantiated. 这些问题实在不知怎么解决。。谁能解决它们请留言,谢谢。
相关文章推荐
- ubuntu 16.04 openjdk安装配置 、phpEclipse插件安装、配置Xdebug
- ubuntu 16.04 openjdk安装配置 、phpEclipse插件安装、配置Xdebug
- Eclipse中php插件安装及Xdebug配置
- Eclipse中php插件安装及Xdebug配置的使用详解
- Eclipse中php插件安装及Xdebug配置的使用详解
- Ubuntu 10.04 安装配置LAMP以及php开发环境 Eclipse PDT的安装
- eclipse 安装php插件及配置xampp集成环境开发php项目
- 在eclipse中安装PHPEclipse插件,配置php开发环境
- Ubuntu10.10 安装XAMPP并配置Eclipse,xDebug
- myeclipse中eclipse PHP插件的安装及代码自动提示配置
- 配置安装eclipse和php、python等插件
- ubuntu 9.10下Eclipse的安装,配置和插件的安装
- Eclipse PHP插件安装与配置
- Ubuntu(Linux)+XAMPP(LAMPP)+eclipse+PHP+XDebug 完整的开发环境配置方法 -
- ubuntu下安装git server以及eclipse egit插件配置
- Eclipse PHP插件(PHPEclipse)安装与配置图解
- Eclipse PHP插件安装与配置
- 在Ubuntu 10.10下安装配置Eclipse for PHP Developer
- ubuntu 下在 XAMPP 和 eclipse-php 环境下安装 XDebug
- ubuntu下安装eclipse的php、c/c++和python的插件