Installing Xdebug when using asdf on MacOS

Install xdebug with pecl:pecl install xdebug Find the relevant php.ini file:var_dump(php_ini_loaded_file(), php_ini_scanned_files()); Add the following lines to the relevant ini.php file (docs, asdf GitHub issue):zend_extension=xdebugxdebug.mode=debug Restart PHP process if it's running (restart Artisan) Check that Xdebug is running on the server by adding the following command to load the xdebug page:xdebug_info() Check that Xdebug is … Continue reading Installing Xdebug when using asdf on MacOS

Docker Considered Harmful (when starting new projects)

Setting up Docker and Compose stops new projects in their tracks. My gut tells me over half of all projects that start by configuring docker-compose.yml and it's accompanying Dockerfiles are abandoned before the first line of code is written. It's even worse on Desktop Linux when using Docker Engine because of the conflicting file permissions … Continue reading Docker Considered Harmful (when starting new projects)

Docker sucks for booting up new projects in Linux

Docker development on Linux sucks because of permissions. Containers are built on C Groups, which is kernel-level isolation. The UID and GIDs are shared between the host and containers. Most containers default to using root (UID 0) by default. This means if you mount your host files inside your container during development, any files created … Continue reading Docker sucks for booting up new projects in Linux