You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel that we could improve ce-dev significantly by having a better experience when trying to use xdebug.
My experience of xdebug on ce-dev is normally:
After getting things setup I'll try to use xdebug to perform stepped debugging to find that it is not setup.
I ssh into the container (using ce-dev ssh) and run php --ini to find the xdebug configuration.
See that the xdebug configuration file is empty.
Run docker network inspect ce_dev to find the gateway of the ce-dev network.
Copy and paste some xdebug configuration settings, along with the gateway found in the network readout.
Restart the fpm service.
There are probably far better ways of doing this, but if need to run a ce-dev provision step (for whatever reason) then I'll have to go through this process again. Occasionally, the network gateway address will change, which means I need to perform this process a second time.
This normally takes around 10-15 minutes per project, often battling with PHPStorm and the xdebug settings to see what I've missed. It will sometimes require me performing the same action to the cli and fpm xdebug configuration files when I want to use stepped debugging on the cli.
So, what would be good is a way of activating the xdebug stepped debugging using a ce-dev command (or even as part of the provision process) so that it "just works"TM.
It was suggested that we use an internal docker network identifier instead of the network gateway address, but I don't know much about this.
Secondarily to this, we should think about doing the same with the xdebug profiler as that can be invaluable in certain situations.
Happy to test anything out if needed!
The text was updated successfully, but these errors were encountered:
Right, so, just add a look and it probably is because the internal network interface has changed, apparently. It used to be docker.for.mac.localhost but is now host.docker.internal
I think this is setup somewhere in ce-dev.
I feel that we could improve ce-dev significantly by having a better experience when trying to use xdebug.
My experience of xdebug on ce-dev is normally:
ce-dev ssh
) and runphp --ini
to find the xdebug configuration.docker network inspect ce_dev
to find the gateway of the ce-dev network.There are probably far better ways of doing this, but if need to run a
ce-dev provision
step (for whatever reason) then I'll have to go through this process again. Occasionally, the network gateway address will change, which means I need to perform this process a second time.This normally takes around 10-15 minutes per project, often battling with PHPStorm and the xdebug settings to see what I've missed. It will sometimes require me performing the same action to the cli and fpm xdebug configuration files when I want to use stepped debugging on the cli.
So, what would be good is a way of activating the xdebug stepped debugging using a ce-dev command (or even as part of the provision process) so that it "just works"TM.
It was suggested that we use an internal docker network identifier instead of the network gateway address, but I don't know much about this.
Secondarily to this, we should think about doing the same with the xdebug profiler as that can be invaluable in certain situations.
Happy to test anything out if needed!
The text was updated successfully, but these errors were encountered: