kali激活phpstorm_kali+phpstorm+xdebug+firefox配置本地/远程调试
本地调试:
本地环境: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配置本地/远程调试相关推荐
- JetBrains PhpStorm 2017.1.4 x64+PHPWAMP+Xdebug环境配置以及断点调试
首先先来说下IDE和服务环境的配置: 第一步,在PHPWAMP的站点根目录下创建项目文件夹,然后把IDE项目文件指向该文件,如下图所示: 第二步,创建文件,然后通过服务器进行显示,这里我写了两个文件, ...
- Phpstorm 2017.1+PHPWAMP+Xdebug环境配置以及断点调试
首先先来说下IDE和服务环境的配置: 第一步,在PHPWAMP的站点根目录下创建项目文件夹,然后把IDE项目文件指向该文件,如下图所示: 第二步,创建文件,然后通过服务器进行显示,这里我写了两个文件, ...
- win7安装Hadoop2.7.1 ,IDEA本地远程调试
2019独角兽企业重金招聘Python工程师标准>>> 注意:如果只想远程调试,则直接跳到第四步 一.准备 1.安装包: Hadoop-2.7.1.tar.gz 下载地址:http: ...
- phpstorm xdebug remote配置
2019独角兽企业重金招聘Python工程师标准>>> xdebug.remote_enable = 1 xdebug.remote_handler=dbgp xdebug.remo ...
- pycharm 配置设置远程调试【远程解释器】
我是在mac上配置的,但Linux,windows基本上完全一样. https://blog.csdn.net/yyhaohaoxuexi/article/details/89377671
- PHPStorm+XDebug进行调试
原文:PHPStorm+XDebug进行调试 笔者的开发环境如下: Windows8.1+Apache+PhpStorm+XDebug+Firefox(XDebug helper 1.4.3插件). ...
- NetBeans配置Xdebug 远程调试PHP
很多PHP程序员使用echo,dump等比较原始的方法调试,这是非常落后的. 几年前本人写过一篇: NetBeans配置Xdebug 由于那篇文档还需要引用本人写的其他文档,感觉有些分散,所以这里重新 ...
- hbuilder php xdebug,Hbuilder使用xdebug配置php断点调试
2019独角兽企业重金招聘Python工程师标准>>> ##1. 背景 不得不说Hbuilder是免费的前端开发工具中比较好用的,而且配合aptana开发php也马马虎虎(毕竟写前端 ...
- hbuilder 断点_Hbuilder配置php断点调试
这篇文章主要介绍了关于Hbuilder配置php断点调试,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下 首先到xdebug官网下载和你的php版本一致的xdebug扩展,我的是php- ...
- hbuilder php断点调试,Hbuilder配置php断点调试
这篇文章主要介绍了关于Hbuilder配置php断点调试,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下 首先到xdebug官网下载和你的php版本一致的xdebug扩展,我的是php- ...
最新文章
- redis全分布式集群
- python爬取贴吧所有帖子-通过python爬取贴吧数据并保存为word
- 优秀平面设计师必须拥有的设计思维
- 未公开接口主要指以下哪几类_Java8的 Stream 函数式接口,你了解多少?
- 100+ 值得收藏的 Web 开发资源
- Blazor 组件之间使用 EventCallback 进行通信
- dnf如何快速拾取物品_DNF游戏里的一些便利性功能,每个都非常实用
- vb 常量数组_用VB制作一个程序的基本步骤
- Register Delphi ,Delphi 不能运行
- 如何让你的 x86 openwrt虚拟机上网
- 【网管知识】狼牙抓鸡器中毒后的解决办法
- 关于网页数据导入excel
- 流体力学专业常用网站集合
- 计算机网络:网络安全(电子邮件安全)
- 计算机excel界面,理解Excel工作界面
- 计算机病毒是指源程序还是特殊小程序,2015年9月计算机一级考试Msoffice上机模拟题(五)...
- SRGAN-超分辨率图像复原
- delphi清除ie缓存的方法
- BZOJ 1143 祭祀 river(最大独立集)
- 曼哈顿算法公式_距离计算方法总结