Installed Packages
xampp-win32-1.7.1-installer.exe Path: D:\xampp\…
netbeans-6.7-ml-php-windows.exe Path: C:\Program Files\NetBeans 6.7\…
php_xdebug-2.0.5-5.2.dll Path: D:\xampp\php\ext\…
Php.ini Configuration
[Zend]
;zend_extension_ts = “D:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll”
;zend_extension_manager.optimizer_ts = “D:\xampp\php\zendOptimizer\lib\Optimizer”
;zend_optimizer.enable_loader = 0
;zend_optimizer.optimization_level=15
;zend_optimizer.license_path =
; Local Variables:
; tab-width: 4
; End:
+++++++++++++++++++++++++++++++++++++++
If XAMPP1.7.3 instead of XAMPP1.7.1 or 1.7.2
We can’t find [Zend] in php.ini file.
We can only found the line below:
;zend_extension = “C:\xampp\php\ext\php_xdebug.dll”
We should remove ‘;’ from the top line.
zend_extension = “C:\xampp\php\ext\php_xdebug.dll”
+++++++++++++++++++++++++++++++++++++++
[XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts=”D:\xampp\php\ext\php_xdebug-2.0.5-5.2.dll”
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
or
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir=”D:\xampp\tmp”
+++++++++++++++++++++++++++++++++++++++
If XAMPP1.7.3 instead of XAMPP1.7.1 or 1.7.2
We can find a little different in php.ini file.
We can’t find the line below in php.ini file:
zend_extension_ts=”D:\xampp\php\ext\php_xdebug-2.0.5-5.2.dll”
BTW, we still can find the top ‘xdebug’ lines by each block. Then enabled each of these lines.
such as:
; xdebug.remote_enable
; Type: boolean, Default value: 0
; This switch controls whether Xdebug should try to contact a debug client which is listening on the
; host and port as set with the settings xdebug.remote_host and xdebug.remote_port. If a connection
; can not be established the script will just continue as if this setting was Off.
xdebug.remote_enable = 1
; xdebug.remote_handler
; Type: string, Default value: dbgp
; Can be either ‘php3′ which selects the old PHP 3 style debugger output, ‘gdb’ which enables the GDB
; like debugger interface or ‘dbgp’ – the brand new debugger protocol. The DBGp protocol is more
; widely supported by clients. See more information in the introduction for Remote Debugging.
xdebug.remote_handler = “dbgp”
; xdebug.remote_host
; Type: string, Default value: localhost
; Selects the host where the debug client is running, you can either use a host name or an IP
; address.
xdebug.remote_host = “localhost”
etc…
+++++++++++++++++++++++++++++++++++++++
Reference:
Configuring PHP Development Environment in Windows
http://www.netbeans.org/kb/docs/php/configure-php-environment-windows.html