標籤:style blog http os io 使用 ar strong for
第一步:安裝php_xdebug擴充,並查看是否安裝成功了
[html] view plaincopyprint?
- sudo apt-get install php5-xdebug #安裝命令
sudo apt-get install php5-xdebug #安裝命令
[html] view plaincopyprint?
- php -m #查看命令
php -m #查看命令
第二步:在php.ini中配置xdebug擴充,在最後行加上如下代碼
[html] view plaincopyprint?
- [xdebug]
- xdebug.remote_enable = 1
- xdebug_remote_host = "localhost"
- xdebug.remote_port = 9000
- xdebug.remote_handler ="dbgp"
- zend_extension=/usr/lib/php5/20100525+lfs/xdebug.so
[xdebug]xdebug.remote_enable = 1xdebug_remote_host = "localhost"xdebug.remote_port = 9000xdebug.remote_handler = "dbgp"zend_extension=/usr/lib/php5/20100525+lfs/xdebug.so
第三步:在Eclipse中配置Xdebug調試,首先菜單Window->Preferences->PHP->Debug->Installed Debuggers->XDebug 雙擊搞定一切
第四步:設定Eclipse中預設的調試瀏覽器,根據紅圈找到相應的就行了
第五步:在Firefox瀏覽器上安裝easy Xdebug組件
第六步:開始在php檔案裡設定斷點,接著在瀏覽器中點擊右下角的Start xdebug session 按鈕,當頁面有任何變動時就跳到Eclipse裡,切換到Eclipse就可進行單步調試之類的了
配置成功後的調試介面
===============================================
附加ChromeGoogle瀏覽器安裝xdebug擴充程式" xdebug helper ",具體安裝方法如下:
或訪問連結也可以安裝 https://www.google.com.hk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCsQFjAA&url=%68%74%74%70%73%3a%2f%2f%63%68%72%6f%6d%65%2e%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%77%65%62%73%74%6f%72%65%2f%64%65%74%61%69%6c%2f%78%64%65%62%75%67%2d%68%65%6c%70%65%72%2f%65%61%64%6e%64%66%6a%70%6c%67%69%65%6c%64%6a%62%69%67%6a%61%6b%6d%64%67%6b%6d%6f%61%61%61%6f%63&ei=YGLCUraYGqnOiAea1YCYDQ&usg=AFQjCNFpnyrnTLNcIvzJerb0BKGNmiWWsw&sig2=4yG_oVSqr839impViNfeLQ&bvm=bv.58187178,d.aGc&cad=rjt
安裝完成後,在擴充程式裡可以看到
點擊標記使用
Ubuntu 13.04下配置Eclipse的Xdebug調試工具+Firefox瀏覽器的easy Xdebug組件結合