在使用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功能进行调试工做啦。编辑器