Skip to content

Instantly share code, notes, and snippets.

@drincruz
Created June 2, 2016 19:32
Show Gist options
  • Save drincruz/6fff5d1865a57c5fbfc192d7646cf4ca to your computer and use it in GitHub Desktop.
Save drincruz/6fff5d1865a57c5fbfc192d7646cf4ca to your computer and use it in GitHub Desktop.
Xdebug and Vagrant
; Enable xdebug extension module
zend_extension=xdebug.so
; see http://xdebug.org/docs/all_settings
xdebug.remote_enable = 1
xdebug.remote_host = 10.0.2.2
xdebug.remote_port = 9000
xdebug.idekey = "vagrant"
xdebug.remote_handler = dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = 0
xdebug.remote_log=/tmp/xdebug.log

These are notes on setting up Xdebug with Vagrant.

  • The settings in 15-xdebug.ini are what I used in my Vagrant VM.
  • I use Xdebug helper in Chromium with an IDE key of "vagrant"
  • In Atom - I have php-debug installed and set to listen on 9000 and have "/dev/vm/path;/home/local/path" set in my path maps
  • In vim - I have Vdebug installed and it will listen properly on 9000 (I need to explore more options here)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment