How to set up Xdebug with Bagisto on Docker?
-
Hi, I followed the official guide for setting up Bagisto on Docker, and have a running installation on my Mac (Big Sur).
However, I need to use Xdebug with Bagisto. I tried installing it using
pecl
, but there is no Xdebug file in theconf.d
directory in both theapache2
andcli
directories in/etc/php/7.3
. Thexdebug.so
file is present in/usr/lib/php/20180731
, but Xdebug still doesn't work.What is the best way to get Xdebug running on the Bagisto Docker installation?
-
In docker, its all depends on how you are installing all the dependencies.
I can just share you a reference, this is not 100 percent same but for checking dependencies you can update your docker file,
https://www.naept.com/blog/easily-debug-your-laravel-sail-applications-with-xdebug/