Phpstorm xdebug docker mac

broken image
broken image

In PHP click the “…” button to configure your CLI Interpreters.Ini_path='/etc/php/$version/fpm/conf.d/20-xdebug.ini'Įcho echo '= Installing $package =' apt-get -y install $packageĮcho '= Prepare $ini_path =' cat > $ini_path Docker click the plus-icon to add a new Server.Ĭonnect to Docker daemon with: “Docker for Mac” Update-alternatives -list php | while read bin do # Get a list of all present PHP versions and setup Xdebug for each of them.

broken image

We use that script to install and configure the Xdebug module on the relevant Docker container (in the next step) #!/bin/bashĮcho '= Updating apm =' apt-get update Name the script setup-xdebug.sh.Įxample: On my machine, the script is “ /Users/philipp/DevKinsta/private/setup-xdebug.sh” Usually, that folder is in your user’s home directory. Place the following bash script in your DevKinsta/private folder. However, most steps are generic, and you do not need to change anything just copy-paste what’s in this guide. Note: When you see a emoji, you need to customize a value. So, here is my documentation and guide, which will save you a lot of time. I’ve struggled a bit with setting up Xdebug + DevKinsta in PhpStorm.

broken image