I’m just wondering, is it possible to configure Devilbox to run a separate PHP container with Xdebug enabled (with another “default” PHP container having Xdebug disabled)?
I’m looking for the exact same possibility. Having the chance to route request to xdebug container or the container without xdebug based on some configuration (querystring, cookie or else) would be extremely helpful.
Thanks for the suggestion @panigrc. But yeah, looks troublesome to do it that way. Went back to vanilla LEMP to configure things as I wanted though it also has a caveat in that the PHP version with Xdebug is higher than the mainstream (e.g. web app uses PHP 7.3 and Xdebug on 7.4). This works but have to keep in mind the PHP feature differences. I haven’t encountered major issue in this approach yet so cross-fingers.
Then again, I’ll cross the bridge if and when I encounter such a situation.
Yeah, unfortunately, I’ve reached that bridge with PHP 7.4 and xDebug installed with PHP 8.x. I’ve switched to compiling my own PHP from source with same PHP major version being used (e.g. PHP 7.4.x installed through apt and another PHP 7.4.x with xdebug enabled installed to my home dir). This is a better setup so far for me…