vagrant - Debugging Drupal on docker container using Atom -


i little bit blocked here. using ubuntu 14 machine atom, developing drupal-based system. installation of system on docker container run on vm using vagrant. can operate atom , run local server check changes. problem using kint/dump not enough, decided install xdebug on docker container , php-debbuger on host machine. installed "the easiest xdebug" on firefox. but, don't seem connected.

i followed steps far:

  • from docker
    • pecl install xdebug
    • inserted on php.ini

      zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so

    • inserted on xdebug.ini

      xdebug.remote_enable=1 xdebug.remote_autostart=0 xdebug.remote_connect_back=1 xdebug.remote_port=9000 xdebug.remote_log=/tmp/php5-xdebug.log xdebug.remote_handler=dbpg

  • from host machine, on ../provision/docker-compose.yml, added following:

    environment:
    xdebug_config: remote_host={{192.168.33.33}}

  • at firefox's add-on, set ide key

    xdebug.atom

  • from atom, on php-debug - settings - path maps

    /url;/home/myname/www/path/cms/

i confused last one, tried different approaches , sure there other settings do. missing?

my experience docker , xdebug have put ip address in docker network.

do docker inspect [your_container_name] | grep -i gateway (when it's running) , use ip remote host configuration in xdebug.ini file.

if want debug further recommend putting remote host configuration directly in xdebug.ini make sure enviroment variable being passed correctly.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -