0
点赞
收藏
分享

微信扫一扫

工具系列 | PHPStrom 2020 配合php-debug在Docker-compose 环境调试


1、本地安装环境为docker-compose 作为PHP调试环境



工具系列 | PHPStrom 2020 配合php-debug在Docker-compose 环境调试_thinkphp


 2、确保 php74 容器已经安装好了xdebug扩展



工具系列 | PHPStrom 2020 配合php-debug在Docker-compose 环境调试_linux_02


 3、php.ini 配置文件(PHP7.4映射配置)



[XDebug]
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
; Set to host.docker.internal on Mac and Windows, otherwise, set to host real ip
xdebug.remote_host = host.docker.internal
xdebug.remote_port = 9000
xdebug.remote_log = /var/log/php/xdebug.log
; idekey value is specific to Visual Studio Code
xdebug.idekey=XDEBUG_ECLIPSE
; Optional: Set to true to always auto-start xdebug
xdebug.remote_autostart=true



4、PHPStrom 配置



工具系列 | PHPStrom 2020 配合php-debug在Docker-compose 环境调试_laravel_03


 最后配置



工具系列 | PHPStrom 2020 配合php-debug在Docker-compose 环境调试_thinkphp_04


工具系列 | PHPStrom 2020 配合php-debug在Docker-compose 环境调试_linux_05

举报

相关推荐

0 条评论