Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev

How to use xdebug with swoole and hyperf in a docker container

Setting up xdebug with swoole could be a bit of a hustle especially if application is containerized and you are running swoole and xdebug in a docker container with IDE on the host.

Here’s what worked for me.

Here I’m using hyperf framework, but I think issues and instructions should be similar for other swoole based frameworks (mezzio, resonance etc). Swoole 5.0.1 + PHP 8.1 natively support xdebug.

How to use xdebug with swoole and hyperf in a docker containerhttps://bytepursuits.com/xdebug-swoole-docker-containerOpen linkView original on programming.dev
5

No replies yet

No comments on the original post yet.
How to use xdebug with swoole and hyperf in a docker container | Spyke