CentOS7 +Nginx + Phpstorm + Xdebug本地和远程断点调试配置教程

一、系统说明

  1. 本篇使用vmware安装CentOS 7(下文简称虚机)搭建的Nginx服务器
  2. 开发机配置的是Nginx + php7.1.14
  3. 环境搭建这里不再赘述

二、Xdebug的安装

打开网址:https://xdebug.org/wizard.php

运行php - i ,将结果全部复制放入上面网址中分析

扩展必看地址:https://webtatic.com/packages/php71/

直接 yum install php71w-pecl-xdebug 即可

php.ini 末尾加上以下代码

xdebug.remote_enable =1

xdebug.remote_handler = "dbgp"

xdebug.remote_host = "192.168.0.115" (本机ip地址)

xdebug.remote_mode = "req"

xdebug.remote_port = 9001

三、PHPSTORM的配置





猜你喜欢

转载自blog.csdn.net/Mossad_Fred/article/details/80355360