title: Docker toolbox Xdebug not working with PhpStorm
body: <p>I tried all the tutorials I found on the internet and still can't use a simple break point in PhpStorm using docker toolbox...</p>
  
  <p>I currently have this inside my <code>Dockerfile</code>:</p>
  
  <pre><code># Install xdebug
  RUN pecl install xdebug; \
      docker-php-ext-enable xdebug; \
      echo "error_reporting = E_ALL" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
      echo "display_startup_errors = On" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
      echo "display_errors = On" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
      echo "xdebug.remote_enable=1" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
      echo "xdebug.remote_port=9001" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
      echo "xdebug.remote_connect_back=0" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
      echo "xdebug.remote_host=192.168.99.100" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
      echo "xdebug.idekey=PHPSTORM" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
      echo "xdebug.remote_autostart=1" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini;
  </code></pre>
  
  <p>Xdebug gets installed and configured correctly (<code>php -i</code> output):</p>
  
  <pre><code>xdebug.remote_autostart =&gt; On =&gt; On
  xdebug.remote_connect_back =&gt; Off =&gt; Off
  xdebug.remote_cookie_expire_time =&gt; 3600 =&gt; 3600
  xdebug.remote_enable =&gt; On =&gt; On
  xdebug.remote_handler =&gt; dbgp =&gt; dbgp
  xdebug.remote_host =&gt; 192.168.99.100 =&gt; 192.168.99.100
  xdebug.remote_log =&gt; no value =&gt; no value
  xdebug.remote_mode =&gt; req =&gt; req
  xdebug.remote_port =&gt; 9001 =&gt; 9001
  xdebug.remote_timeout =&gt; 200 =&gt; 200
  xdebug.idekey =&gt; PHPSTORM =&gt; PHPSTORM
  </code></pre>
  
  <p>In my PhpStorm configuration I have the following:</p>
  
  <p>Proxy:</p>
  
  <p><a href="https://i.stack.imgur.com/Uu010.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uu010.png" alt="DBGp Proxy"></a></p>
  
  <p>Debug
  <a href="https://i.stack.imgur.com/eCic6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eCic6.png" alt="Debug"></a></p>
  
  <p>PHP interpreter
  <a href="https://i.stack.imgur.com/IytVZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IytVZ.png" alt="PHP interpreter"></a></p>
  
  <p>Debug config
  <a href="https://i.stack.imgur.com/ttB1u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ttB1u.png" alt="Debug config"></a></p>
  
  <p>Server configuration
  <a href="https://i.stack.imgur.com/ecsBo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ecsBo.png" alt="Server config"></a></p>
  
  <p>The blurred items are <code>Username</code> and <code>project name</code>.</p>
  
  <p>I have 2 folders in a project, one called <code>docker</code> and holds all the docker files and one <code>site</code>, that holds all the site files.</p>
  
  <p>The configuration for my docker-compose is the following:</p>
  
  <pre><code>version: '3'
  
  services:
    application:
      image: project_image:latest
      environment:
        - C_UID=${C_UID:-1000}
        - C_GID=${G_UID:-1000}
        - DEVELOPMENT=${DEVELOPMENT:-1}
        - ~/.ssh:/var/www/.ssh
        - ~/.composer:/var/www/.composer
      env_file:
        - .env
      volumes:
        - ${APPLICATION:-../site}:/phpapp
      ports:
        - 9001:9001
  
    nginx:
      image: dockerwest/nginx-laravel:${NGINXVERSION:-stable}
      environment:
        - VIRTUAL_HOST=${BASEHOST:-project_name.docker},${EXTRAHOSTS}
      volumes:
        - ${APPLICATION:-../site}:/phpapp
      links:
        - application
      ports:
        - 80:80
  </code></pre>
  
  <p>Anyone a clue on what I'm doing wrong here?</p>
  
  <p>When I try to de <code>telnet 192.168.99.100 9001</code>, the connection can't be made, port <code>9000</code>, neither, but port <code>80</code> gives me a good response.</p>
  
  <p>Anyone who has an idea what's going on here?</p>