Installing and Enabling the XDebug Debugger
- Download XDebug 2.0. The download links are listed under Releases. Download the Windows module appropriate for your version of PHP.
- Because Zend optimizer blocks XDebug, you need to disable Zend optimizer. In active php.ini file, shown by phpinfo() under Loaded Configuration File, locate the following lines and delete them or mark as comments:
[Zend] ;zend_extension_ts = "C:/Program Files/php/zendOptimizer/lib/ZendExtensionManager.dll" ;zend_extension_manager.optimizer_ts = "C:/Program Files/xampplite/php/zendOptimizer/lib/Optimizer" ;zend_optimizer.enable_loader = 0 ;zend_optimizer.optimization_level=15 ;zend_optimizer.license_path =
- To attach XDebug to the PHP engine, uncomment the following lines in the php.ini files (directly beneath the [Zend] section, add them if not there):
[XDebug]
Note: Make sure the paths you specify match the location of the corresponding files as determined during your installation.
;; Only Zend OR (!) XDebug
zend_extension_ts = "<path to the php folder>/php_xdebug-2.0.3-5.2.5.dll"
xdebug.remote_enable=true
;xdebug.remote_host=127.0.0.1
;xdebug.remote_port=9010
;xdebug.remote_handler=dbgp
;xdebug.profiler_enable=1
;xdebug.profiler_output_dir="G:/tmp"
- Restart the Apache server.
Click here for more information on how to configure XDebug.
From:
http://www.netbeans.org/kb/docs/php/configure-php-environment-windows.html