Skip to content

N0el4kLs/PHPSTORM_Docker_debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用

将要调试的代码放到 source/src 目录下,在source/Dockerfile 中选择对应版本的php就行了.

PHPStorm 环境配置

image-20240107214505729

image-20240107214733055

image-20240107214822711

IDE key 得和 xdebug Helper的一致

image-20240107214849346

image-20240107215013589

设置完之后

image-20240107215039506

打开xdebug ,调试就行了

关于部分时候断点调试捕获不了的问题:

临时解决方案:在 Setting----->PHP---->servers 处的映射路径多填写一点.具体原因还在排查.

image-20240206223806410

数据库监控

数据库监控我使用的这个项目:https://github.com/ac0d3r/MySQLMonitor, 监控原理是去获取general_log_file

Todo

  • 等待 Mysql 启动.

About

Build php envrioment with docker-compose and debug with phpstorm.使用 docker-compose 搭建 php-web 并使用 phpstorm调试

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published