linux xampp eclipse xdebug 無法進入斷點

來源:互聯網
上載者:User

標籤:io   os   sp   檔案   on   amp   ad   ef   linux   

一、xampp 版本 1.8.3-5

xampp安裝後會自動整合xdebug,目錄一般為 /opt/lampp/lib/php/extensions/***-debug-***目錄

關於php 與php.ini路徑

php程式路徑為:/opt/lampp/bin/

php.ini設定檔路徑為:/opt/lampp/etc/

 

1、設定檔一般在/opt/lampp/etc/php.ini

修改php.ini在檔案最底部加入下面項

[xdebug]

zend_extension ="/opt/lampp/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so" xdebug.profiler_enable=on xdebug.trace_output_dir="/opt/lampp/tmp" xdebug.profiler_output_dir="/opt/lampp/tmp" xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost

 

一定要注意9099這個連接埠,系統預設是9000如果你這裡設定的不是9000要注意修改eclipse debug選項

具體在debug configurations ->debug->configurations->debug port

二、設定eclipse 步驟

開啟Eclipse,在裡面設定xdebug, window->preferences->PHP->Debug, PHP Debugger 選擇 Xdebug Server 選擇 php Default Web Server, php Executalbe 點進去之後按Add, 在Executable Path按Browse,選擇/opt/lampp/bin/php ,php ini檔案路徑在/opt/lampp/etc/php.ini ,

名字嘛,隨便給個就好,叫php吧,php debuger選擇XDebug ,點ok

 

linux xampp eclipse xdebug 無法進入斷點

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.