Giter VIP home page Giter VIP logo

phpstorm_docker_debug's Introduction

使用

将要调试的代码放到 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 启动.

phpstorm_docker_debug's People

Contributors

n0el4kls avatar

Stargazers

 avatar

Watchers

 avatar

phpstorm_docker_debug's Issues

Mysql start error

2024-03-05 11:59:25+00:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: sourcing /docker-entrypoint-initdb.d/init.sh
/docker-entrypoint-initdb.d/init.sh: line 1: !#/bin/sh: No such file or directory
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.