Today in XAMPP I’m trying to enable xdebug for use with Netbeans 7 and found a tricky problem that xdebug won’t even show up when doing:
phpinfo();
Leads me to check for php.ini file to make sure that I’m using the right one.

I’ve edited the file under apache\bin to look like the following:
zend_extension_ts = D:\xampplite\php\ext\php_xdebug.dll
; XAMPP and XAMPP Lite 1.7.0 and later come with a bundled xdebug at <XAMPP_HOME>/php/ext/php_xdebug.dll, without a version number.
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
; Port number must match debugger port number in NetBeans IDE Tools > Options > PHP
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir=”D:\xampplite\tmp”
This is a php showing xdebug enabled:
