mac+phpstorm+xdebug 最精鍊安裝方法

來源:互聯網
上載者:User

PHP  xdebug擴充

brew search xdebug    (在出來的結果裡面選取一個和自己的PHP版本匹配的擴充)

brew install xdebug-70      ( 我的PHP版本是php7)

在/usr/local/etc/php/7.0/ext-xdebug.so 填上配置
[xdebug]
zend_extension="/usr/local/opt/php70-xdebug/xdebug.so"


xdebug.remote_enable=1


xdebug.remote_host="localhost"


xdebug.remote_port=9001


xdebug.profiler_enable=1


xdebug.profiler_output_dir="/Users/www/debug"


xdebug.idekey="PHPSTORM"

重啟PHP    ./php70-fpm  restart

PHPstorm上面配置xcode

1.先開啟preferences裡面的language->php 將PHP版本選好 2.DEbug裡面改好連接埠號碼 (要和xdebug設定檔裡面填的連接埠號碼一致) 3servers裡面填好項目地址 4在storm右上方點擊建立然後填好訪問的地址(地址欄寫啥,就寫啥)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.