Xdebug install

install xdebug

  • yum install php-pear
  • yum install php-devel
  • yum install gcc
  • pecl install xdebug

configure php.ini

[xdebug]
zend_extension = "/usr/lib/php/modules/xdebug.so"
;;
xdebug.remote_connect_back = On
xdebug.remote_enable = On
xdebug.show_local_vars = 1

;;
;;xdebug.remote_autostart = On
xdebug.idekey = "netbeans-xdebug"
;;
xdebug.default_enable = On
xdebug.show_exception_trace = On
xdebug.show_local_vars = 1
xdebug.max_nesting_level = 50
xdebug.var_display_max_depth = 6

xdebug.remote_log = /tmp/xdebug.log

service httpd restart

xdebug & notepad++
xdebug over ssh-tunnel via putty