Setting up XDebug to work with Netbeans IDE
Stack
- Windows 7
- NetBeans IDE 8.0
- VirtualBox
- Debian
- NGINX
- PHP5-FPM
- Magento
- Debian
Configuring XDebug php.ini
- nano /etc/php5/fpm/conf.d/yourcustom.ini
# Integrating XDebug with NetBeans
[XDebug]
xdebug.remote_host=192.168.56.102
xdebug.idekey=”netbeans-xdebug”
xdebug.remote_autostart=off
#xdebug.remote_autostart=on# Prevent delay in output of debugged scripts
output_buffering = Off# Prevent 504 Gateway timeout when debugging
default_socket_timeout = 3600 - sudo /etc/init.d/php5-fpm restart
- or service php5-fpm reload
Configuring NGiNX
- nano /etc/nginx/sites-available/yoursite
server {
location ~ \.php$ {
fastcgi_read_timeout 3600;
}
} - sudo service nginx restart
- or service nginx reload
Sources:
- http://www.magentocommerce.com/boards/viewthread/33764/
- http://dragonfroot.com/blog/magento-xdebug-with-netbeans/
- https://netbeans.org/kb/docs/php/debugging.html
- http://stackoverflow.com/questions/18229757/nginx-php-fpm-xdebug-netbeans-can-start-only-one-debug-session
- https://github.com/Varying-Vagrant-Vagrants/VVV/issues/39
- http://wiki.nginx.org/HttpFastcgiModule#fastcgi_read_timeout
- https://rtcamp.com/tutorials/php/increase-script-execution-time/