Ubuntu 13.04下配置Eclipse的Xdebug調試工具+Firefox瀏覽器的easy Xdebug組件結合,13.04xdebug

來源:互聯網
上載者:User

Ubuntu 13.04下配置Eclipse的Xdebug調試工具+Firefox瀏覽器的easy Xdebug組件結合,13.04xdebug

第一步:安裝php_xdebug擴充,並查看是否安裝成功了

[html] view plaincopyprint?
  1. sudo apt-get install php5-xdebug #安裝命令 
sudo apt-get install php5-xdebug #安裝命令
[html] view plaincopyprint?
  1. php -m #查看命令 
php -m #查看命令

第二步:在php.ini中配置xdebug擴充,在最後行加上如下代碼

[html] view plaincopyprint?
  1. [xdebug] 
  2. xdebug.remote_enable = 1 
  3. xdebug_remote_host = "localhost" 
  4. xdebug.remote_port = 9000 
  5. xdebug.remote_handler ="dbgp" 
  6. 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


安裝完成後,在擴充程式裡可以看到



點擊標記使用


xdebug eclipse配置問題

你裝了WTK嗎?沒有的話先裝下WTK 然後再在eclipse的j2me選項裡配置一下wtk的路徑 然後將WTK的模擬器匯入 再試下

如果對您有協助,請記得採納為滿意答案,謝謝!祝您生活愉快!

vaela
 
Eclipse+php外掛程式+Xdebug搭建PHP完美開發/調試環境

直接去Eclipse上面下載一個PHP版本【就是那個PDT】的就行了。注意要上Eclipse的原版官網,然後在Help》》Check Updates更新到最新,記得死也不要選那個Amazon的伺服器,死慢死慢的還帶掉線。另外提示你一件事情:Eclipse由於是Java實現,所以CPU佔用率比較高,你要有心理準備。這些外掛程式在Eclipse的Install New Software 上面都有。實在沒辦法的話,去找個Apanta算了。需要中文的話,去Babel.Eclipse.org上面更新。
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.