Ubuntu 12.04 装配Xdebug 和 配置eclipse
2013-05-03 11:53
302 查看
Ubuntu 12.04 装配Xdebug 和 配置eclipse
www.MyException.Cn 发布于:2013-03-10 09:38:39 浏览:0次Ubuntu 12.04 安装Xdebug 和 配置eclipse
Requirements:
-LAMP already installed
-Eclipse-php already installed
Server configuration:
-Open a terminal
-run: sudo apt-get install php5-xdebug
-run: sudo nano /etc/php5/conf.d/xdebug.ini
-Don't delete the content of this file, just go to the end of the file add 2 blank lines and paste the next configuration:
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
-save changes
-run: sudo /etc/init.d/apache2 restart
Eclipse configuration:
-Open eclipse-php
-On the eclipse main menu go to: Window--> Preferences
-Navigate on the tree menu to: PHP--> Debug
-open the dropDownList "work with"
-On "PHP Debugger" select "XDebug"
-Leave alone "Server" and "PHP Executables"
-Save changes and close the window
-On the eclipse main menu go to: Run--> Debug configurations...
-Do a double click over "PHP Web Page" just to add a new setting
-On the DropDowList "Server Debugger" select "XDebug"
-On the file section browse and select the "index.php" of your project or whatever file you need to start your application
-Uncheck "Break at Fist Line"
-Apply changes and close the window
-On the eclipse main menu go to: Window--> Web Browser--> Default System Web Browser
Testing xdebug
-Open a project with source code that already is hosted in your LAMP server
-Place a "break point" at some point of you script
-Press "F11" to start the debugger
-Your code should stop at the break point
-Now move the mouse over variables so watch its values
相关文章推荐
- Ubuntu 13.04下配置Eclipse的Xdebug调试工具+火狐浏览器的easy Xdebug组件结合
- ubuntu 13.10 eclipsepdt xdebug 配置
- ubuntu 16.04 openjdk安装配置 、phpEclipse插件安装、配置Xdebug
- Ubuntu 13.04下配置Eclipse的Xdebug调试工具+火狐浏览器的easy Xdebug组件结合
- ubuntu 12.04 eclipse 编辑器颜色配置
- Ubuntu(Linux)+XAMPP(LAMPP)+eclipse+PHP+XDebug 完整的开发环境配置方法 -
- ubuntu 12.04 环境下 eclipse的安装过程 和配置ubuntu下的stm32开发环境
- Ubuntu(Linux)+XAMPP(LAMPP)+eclipse+PHP+XDebug 完整的开发环境配置方法
- eclipse 配置 C++ 11 -- ubuntu 12.04
- Ubuntu10.10 安装XAMPP并配置Eclipse,xDebug
- Ubuntu 13.04下配置Eclipse的Xdebug调试工具+火狐浏览器的easy Xdebug组件结合
- ubuntu 16.04 openjdk安装配置 、phpEclipse插件安装、配置Xdebug
- linux 下 VNC Server安装配置及 eclipse CDT C/C++ 开发环境搭建(我用的是阿里云服务器 ubuntu 12.04 64-bit,无图形化界面)
- Ubuntu+lamp+eclipse+xdebug+虚拟主机的配置
- ubuntu 12.04 配置 Eclipse的 C/C++开发环境
- ubuntu 16.04 phpEclipse插件安装及配置Xdebug
- Ubuntu 12.04 下Eclipse的安装和配置
- Ubuntu 12.04安装vim和配置
- 在Ubuntu 12.04上配置iSCSI Target服务
- ubuntu下eclipse与android NDK的配置