phpstorm+xdebug實現斷點調試php

來源:互聯網
上載者:User
本文主要和大家分享phpstorm+xdebug實現斷點調試php的方法,希望能協助到大家。

1、下載xdebug模組

xdebug下載地址:https://xdebug.org/download.php

注意:帶"ts"是安全執行緒的意思,"nts"的他沒有標示,也就是說,如果是nts的要下載沒標示的,下載下來的檔案名稱其實是有標示的。

2、把xdebug安裝到php

把下載的dll拷貝到php裡面的ext檔案夾裡(擴充dll都在這裡),改名為php_xdebug.dll。

在php.ini裡修改(在“; Module Settings ;”下面添加):

  1. [xdebug]  zend_extension=php_xdebug.dll  xdebug.remote_enable = Onxdebug.remote_handler = dbgpxdebug.remote_host= localhostxdebug.remote_port = 9000xdebug.idekey = PHPSTORM


在phpinfo頁面查看,會有xdebug的相關資訊,表示已經配置好php了!

3、配置phpstorm








打了斷點之後就可以開始了


聯繫我們

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