本地调试:

本地环境:kali(192.168.12.35)+phpstorm2019.1.3+xdebug+firefox

1)安装配置xdebug:

根据phpinfo下载xdebug

1. Download xdebug-2.9.2.tgz

2. Install the pre-requisites for compiling PHP extensions. On your Debian system, install them with: apt-get install php-dev autoconf automake

3. Unpack the downloaded file with tar -xvzf xdebug-2.9.2.tgz

4. Run: cd xdebug-2.9.2

5. Run: phpize (See the FAQ if you don’t have phpize).

As part of its output it should show:

Configuring for:

Zend Module Api No: xxxxxxxx

Zend Extension Api No: xxxxxxxxx

If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.

11.Run: ./configure

12.Run: make

13.Run: cp modules/xdebug.so /usr/lib/php/xxxxxxxx

14.Update /etc/php/7.x/apache2/php.ini and change the line

zend_extension = /usr/lib/php/xxxxxxxx/xdebug.so

Make sure that zend_extension = /usr/lib/php/xxxxxxxx/xdebug.so is below the line for OPcache.

15.Restart the webserver

php.ini:

末尾

[XDebug]

zend_extension = /usr/lib/php/xxxxxxxx/xdebug.so

; Debug Config

xdebug.remote_enable = 1

xdebug.remote_handler = "dbgp"

xxdebug.remote_mode = "req"

xdebug.remote_host = "127.0.0.1"

xdebug.remote_port = 9010

xdebug.remote_log = "/var/log/php-fpm/xdebug.log"

xdebug.remote_autostart = off

xdebug.idekey = "PHPSTORM"

; Profiler Config

xdebug.profiler_append = 0

xdebug.profiler_enable = 1

xdebug.profiler_output_dir = "/tmp/xdebug"

xdebug.trace_output_dir = "/tmp/xdebug"

xdebug.profiler_enable_trigger = 0

xdebug.profiler_output_name = "cache.out.%t-%s"

2)配置phpstorm

远程调试

远程环境:win7(192.168.12.34)+phpstudy2016(php5.4.45+apache:8866)+xdebug

本地环境:kali(192.168.12.35)+phpstorm2019.1.3+xdebug+firefox

1)安装配置远程xdebug

phpstudy直接可直接开启php扩展xdebug

[XDebug]

xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"

xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug"

zend_extension="D:\phpStudy\php\php-5.4.45\ext\php_xdebug.dll"

xdebug.profiler_append = 0

xdebug.profiler_enable = 1

xdebug.profiler_enable_trigger = 0

xdebug.profiler_output_name = "cache.out.%t-%s"

xdebug.remote_enable = 1

xdebug.remote_handler = "dbgp"

xdebug.remote_mode = "req"

xdebug.remote_host = "192.168.12.35"

xdebug.remote_port = 9001

xdebug.idekey= PHPSTORM

2)配置phpstorm

/*

配置ftp部署同步

*/

kali激活phpstorm_kali+phpstorm+xdebug+firefox配置本地/远程调试相关推荐

  1. JetBrains PhpStorm 2017.1.4 x64+PHPWAMP+Xdebug环境配置以及断点调试

    首先先来说下IDE和服务环境的配置: 第一步,在PHPWAMP的站点根目录下创建项目文件夹,然后把IDE项目文件指向该文件,如下图所示: 第二步,创建文件,然后通过服务器进行显示,这里我写了两个文件, ...

  2. Phpstorm 2017.1+PHPWAMP+Xdebug环境配置以及断点调试

    首先先来说下IDE和服务环境的配置: 第一步,在PHPWAMP的站点根目录下创建项目文件夹,然后把IDE项目文件指向该文件,如下图所示: 第二步,创建文件,然后通过服务器进行显示,这里我写了两个文件, ...

  3. win7安装Hadoop2.7.1 ,IDEA本地远程调试

    2019独角兽企业重金招聘Python工程师标准>>> 注意:如果只想远程调试,则直接跳到第四步 一.准备 1.安装包: Hadoop-2.7.1.tar.gz 下载地址:http: ...

  4. phpstorm xdebug remote配置

    2019独角兽企业重金招聘Python工程师标准>>> xdebug.remote_enable = 1 xdebug.remote_handler=dbgp xdebug.remo ...

  5. pycharm 配置设置远程调试【远程解释器】

    我是在mac上配置的,但Linux,windows基本上完全一样. https://blog.csdn.net/yyhaohaoxuexi/article/details/89377671

  6. PHPStorm+XDebug进行调试

    原文:PHPStorm+XDebug进行调试 笔者的开发环境如下: Windows8.1+Apache+PhpStorm+XDebug+Firefox(XDebug helper 1.4.3插件). ...

  7. NetBeans配置Xdebug 远程调试PHP

    很多PHP程序员使用echo,dump等比较原始的方法调试,这是非常落后的. 几年前本人写过一篇: NetBeans配置Xdebug 由于那篇文档还需要引用本人写的其他文档,感觉有些分散,所以这里重新 ...

  8. hbuilder php xdebug,Hbuilder使用xdebug配置php断点调试

    2019独角兽企业重金招聘Python工程师标准>>> ##1. 背景 不得不说Hbuilder是免费的前端开发工具中比较好用的,而且配合aptana开发php也马马虎虎(毕竟写前端 ...

  9. hbuilder 断点_Hbuilder配置php断点调试

    这篇文章主要介绍了关于Hbuilder配置php断点调试,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下 首先到xdebug官网下载和你的php版本一致的xdebug扩展,我的是php- ...

  10. hbuilder php断点调试,Hbuilder配置php断点调试

    这篇文章主要介绍了关于Hbuilder配置php断点调试,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下 首先到xdebug官网下载和你的php版本一致的xdebug扩展,我的是php- ...

最新文章

  1. redis全分布式集群
  2. python爬取贴吧所有帖子-通过python爬取贴吧数据并保存为word
  3. 优秀平面设计师必须拥有的设计思维
  4. 未公开接口主要指以下哪几类_Java8的 Stream 函数式接口,你了解多少?
  5. 100+ 值得收藏的 Web 开发资源
  6. Blazor 组件之间使用 EventCallback 进行通信
  7. dnf如何快速拾取物品_DNF游戏里的一些便利性功能,每个都非常实用
  8. vb 常量数组_用VB制作一个程序的基本步骤
  9. Register Delphi ,Delphi 不能运行
  10. 如何让你的 x86 openwrt虚拟机上网
  11. 【网管知识】狼牙抓鸡器中毒后的解决办法
  12. 关于网页数据导入excel
  13. 流体力学专业常用网站集合
  14. 计算机网络:网络安全(电子邮件安全)
  15. 计算机excel界面,理解Excel工作界面
  16. 计算机病毒是指源程序还是特殊小程序,2015年9月计算机一级考试Msoffice上机模拟题(五)...
  17. SRGAN-超分辨率图像复原
  18. delphi清除ie缓存的方法
  19. BZOJ 1143 祭祀 river(最大独立集)
  20. 曼哈顿算法公式_距离计算方法总结

热门文章

  1. 利用iisnode模块,让你的Node.js应用跑在Windows系统IIS中
  2. HTMLCSS学习笔记(三)----标签类型转换、样式重置
  3. 设计模式之行为类模式大PK
  4. oracle出现关键字该如何处理
  5. HCIE-Security Day33:IPSec:深入学习ipsec ikev2、IKEV1和IKEV2比较
  6. 使用paramiko在eNSP的交换机中批量创建VLAN
  7. VXLAN配置实例(四)——VXLAN多租户网络隔离
  8. Linux之软件安装rpm、yum/dnf、源码(安装)
  9. 网易云数据库容灾策略
  10. MVC 实体如何获取子集