Edit 2023-12-08: The upstream issues are resolved. For DDEV v1.22.5, just add this to .ddev/config.yaml:
webimage_extra_packages: [php8.3-xdebug]
For versions after v1.22.5, nothing needs to be done.
DDEV v1.22.5 has support for PHP 8.3.0, but it does not yet have xdebug. How can I get xdebug before it's released in the upstream repositories?
Edit 2023-12-08: The upstream issues are resolved. For DDEV v1.22.5, just add this to .ddev/config.yaml:
For versions after v1.22.5, nothing needs to be done.
Leaving the discussion below because it's great for any needed PECL package.
You can use
pecl
in a custom.ddev/web-build/Dockerfile
to install anyPECL
extension.Add this
.ddev/web-build/Dockerfile
to your project andddev restart
:After it starts up (it takes a little bit to build the image),
This can be adapted pretty easily for almost any extension in
PECL
.Resources: