Skip to content

Instantly share code, notes, and snippets.

@maddo
Created November 18, 2013 14:09
Show Gist options
  • Save maddo/7528353 to your computer and use it in GitHub Desktop.
Save maddo/7528353 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.provision :shell, :inline => "echo Setting up debugging"
config.vm.provision :shell, :inline => "echo 'error_reporting = E_ALL' > /etc/php.d/error.ini"
config.vm.provision :shell, :inline => "echo '[PHP]' > /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'html_errors = 1' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo ' ' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo '[xdebug]' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'zend_extension=\"/usr/local/php/lib/php/xdebug.so\"' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.show_mem_delta=On' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.profiler_output_dir=/www/sites/www.c.com/chess/logs' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.profiler_enable_trigger=1' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.profiler_output_name=\"cachegrind.out.%s.%t\"' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.profiler_append=1' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.trace_enable_trigger=1' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.default_enable=1' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo ' ' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo ' ' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.remote_enable=1' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.remote_handler=dbgp' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.remote_host=10.10.10.1' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.remote_port=9400' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.remote_autostart=1' >> /etc/php.d/xdebug.ini"
config.vm.provision :shell, :inline => "echo 'xdebug.idekey=PhpStorm' >> /etc/php.d/xdebug.ini"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment