pleboulder.blogg.se

Download docker php ext enable xdebug
Download docker php ext enable xdebug









download docker php ext enable xdebug

  • Download from the latest stable release and unpack to your PHP project root.
  • To use a bind mount uncomment to corresponding line under db server's volumes: in your docker-compose.yml and update the host path to your data directory. If you want to have your DB data all-time persistent and attached, we recommend using a bind mount. However, if you run docker-compose down (it's ok to use stop though) these volumes will not be reattached when you run docker-compose up. Hopefully this saves someone else a couple frustrating hours.By default Docker will create a persistent volume for your DB data and unless you explicitly remove volumes the files will not be deleted. I'm a PHP dummy, so I used the xdebug Installation Wizard as before to verify xdebug was enabled. Rebuild the container and verify xdebug is enabledĪfter rebuilding the container, verify that the xdebug module is installed by running php -m

    download docker php ext enable xdebug

    usr/local/lib/php/extensions/no-debug-non-zts-20210902/xdebug.so RUN apk update & apk add php81-pecl-xdebug & \ xdebug.ini /usr/local/etc/php/conf.d/99-xdebug.ini RUN apk update & apk add php-pecl-xdebug & \ In your dockerfile, install the package and link/copy the files according to the previous steps. zend_extension=xdebugĪdditional options are needed to make it do anything useful, but I'll leave that to the reader. In either case, all you really need is this line to enable xdebug. If you take the latter path, name the file 99-xdebug.ini per the documentation. You can also create the configuration file directly in its destination. devcontainer folder, so that's the route I'll follow for this example.

    download docker php ext enable xdebug

    I like to keep my xdebug.ini inside my VS Code. Run apk info -a php-pecl-xdebug to get the contents of the package.Īccording to the output of apk info -a php81-pecl-xdebug, my locations were: php81-pecl-xdebug-3.1.5-r0 contains: Just don't include the dot (e.g., 81 NOT 8.1). As of this writing, only the major PHP releases are listed, but I was able to manually specify a feature release. You can find available versions by reviewing the xdebug documentation. Your results may vary depending on the version you select. We are mainly concerned with Extra Configuration Files Path and Extensions directory.įigure out where the apk package is being installed

  • Keep this output handy, as we'll need it later.
  • Go to the xdebug Installation Wizard and paste the results in the box.
  • Copy the output of php -i to your clipboard.
  • Xdebug can be installed via apk, but it takes some tweaking Determine your PHP extension and config directories











    Download docker php ext enable xdebug