From 104925dff46fee98a4e8551f225b299e68ca5616 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 29 Jul 2013 18:37:40 +0200 Subject: [PATCH] Vagrant: Enable XDebug remote debugging refs #4460 --- .vagrant-puppet/modules/php/manifests/init.pp | 6 ++++++ .../modules/php/templates/xdebug_settings.ini.erb | 5 +++++ public/.htaccess | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .vagrant-puppet/modules/php/templates/xdebug_settings.ini.erb diff --git a/.vagrant-puppet/modules/php/manifests/init.pp b/.vagrant-puppet/modules/php/manifests/init.pp index 36b6b09ac..1a8e31746 100644 --- a/.vagrant-puppet/modules/php/manifests/init.pp +++ b/.vagrant-puppet/modules/php/manifests/init.pp @@ -29,4 +29,10 @@ class php { require => Package['php'], notify => Service['apache'] } + + file { '/etc/php.d/xdebug_settings.ini': + content => template('php/xdebug_settings.ini.erb'), + require => Package['php'], + notify => Service['apache'] + } } diff --git a/.vagrant-puppet/modules/php/templates/xdebug_settings.ini.erb b/.vagrant-puppet/modules/php/templates/xdebug_settings.ini.erb new file mode 100644 index 000000000..99ecba993 --- /dev/null +++ b/.vagrant-puppet/modules/php/templates/xdebug_settings.ini.erb @@ -0,0 +1,5 @@ +xdebug.var_display_max_children = 128 +xdebug.var_display_max_data = 1024 +xdebug.var_display_max_depth = 5 +xdebug.remote_enable = 1 +xdebug.remote_connect_back = 1 diff --git a/public/.htaccess b/public/.htaccess index 60e81c59c..6adf83a17 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -9,4 +9,5 @@ RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] php_flag short_open_tag on -php_value short_open_tag 1 + +php_value xdebug.idekey PHPSTORM