php+Xdebug断点调试

复制代码
1.下载
php_xdebug-2.7.0alpha1-7.0-vc14-nts.dll
php_xdebug-2.5.5-5.6-vc11-nts-x86_64.dll

2.把上面两个文件放到php对应版本的路径下 3.修改php对应版本的配制文件,php.ini文件 4.目前只有php7.0和php5.6的版本 7.0 [XDebug] ;; Only Zend OR (!) XDebug zend_extension = C:\phpStudy\PHPTutorial\php\php-7.0.12-nts\ext\php_xdebug-2.7.0alpha1-7.0-vc14-nts.dll xdebug.remote_enable =1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "localhost" xdebug.remote_mode = "req" xdebug.remote_port = 9000 xdebug.idekey = PHPSTORM 原来的 [XDebug] xdebug.profiler_output_dir="G:\xxx\phpstudy\PHPTutorial\tmp\xdebug" xdebug.trace_output_dir="G:\xxx\phpstudy\PHPTutorial\tmp\xdebug" ;zend_extension="D:\Program Files\phpStudy20161103\php\php-7.0.12-nts\ext\php_xdebug.dll" 5.6 [XDebug] ;; Only Zend OR (!) XDebug zend_extension = C:\phpStudy\PHPTutorial\php\php-5.6.27-nts\ext\php_xdebug-2.5.5-5.6-vc11-nts-x86_64.dll xdebug.remote_enable =1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "localhost" xdebug.remote_mode = "req" xdebug.remote_port = 9000 xdebug.idekey = PHPSTORM 原来的 [XDebug] xdebug.profiler_output_dir="G:\xxx\phpstudy\PHPTutorial\tmp\xdebug" xdebug.trace_output_dir="G:\xxx\phpstudy\PHPTutorial\tmp\xdebug" ;zend_extension="D:\Program Files\phpStudy20161103\php\php-5.6.27-nts\ext\php_xdebug.dll"
复制代码

 

1.这个打开

 

 2.f8 逐行,f9 下个断点   f7逐语句

 

3.xdebug进不去,(报错File path is not mapped to any file path on server. Edit path mappings to fix the problem)

                               文件路径未映射到服务器上的任何文件路径。编辑路径映射以解决问题

 

 

posted @   炽橙子  阅读(978)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 25岁的心里话
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
点击右上角即可分享
微信分享提示