在使用phpstorm等IDE編輯器編寫php代碼時,爲了更方便的調試,咱們須要安裝一款php的擴展插件 xdebug。本實例當前運行環境爲phpstudy集成環境。php
遊覽器輸入網址:https://xdebug.org或者直接搜索xdebug進入網站。html
點擊下方download進入下載頁面。點擊 custom installation instructions連接。phpstorm
zend_extension = "D:\phpStudy2018\PHPTutorial\php\php-7.1.13-nts\ext\php_xdebug-2.7.2-7.1-vc14-nts.dll" xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.idekey="PHPSTORM"
通過上面幾個步驟,咱們就安裝好了php的xdebug擴展,而且配置好了phpstorm中的相關配置,下面就能夠使用phpstorm的xdebug功能進行調試工做啦。編輯器