I have now tried for hours getting xDebug (2.0.5 compiled from source) to work on my MacBook OS X with NetBeans 6.8. I have installed MAMP and am running a small PHP (5.2) test program with it, no problem. But when I try to debug I get this text in Netbeans: "Waiting for connection (netbeans-xdebug)" and nothing more happens. Netbeans is configured for Debugger Port 9000. No Zend Optimization in MAMP.I have followed this: http://netbeans.org/kb/docs/php/configure-php-environment-mac-os.html#installEnableXdebugand http://www.xdebug.org/docs/installand http://forums.netbeans.org/topic1513-0-asc-0.html etcHere is part of my php.ini\[code\][XDebug];zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so";[Zend];zend_optimizer.optimization_level=15;zend_extension_manager.optimizer=/Applications/MAMP/bin/php5/zend/lib/Optimizer-3.3.9;zend_optimizer.version=3.3.9; Xdebug config for Mac OS X and NetBeans IDEzend_extension=/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.soxdebug.remote_enable=1xdebug.remote_handler=dbgpxdebug.remote_mode=reqxdebug.remote_host=localhostxdebug.remote_port=9000xdebug.idekey="netbeans-xdebug"\[/code\]I have read a lot of installation instructions etc and phpinfo show that xDebug is installed OK as V.5.2.11 (seen via "Open Start Page" in MAMP). However when i try in terminal PHP -m i do not see xdebug listed. I finally figured that PHP.INI is read from /etc so I copied the MAMP php.ini to php.ini there, thus added the xdebug.se, localhost, port 9000 etc info there. After that xdebug IS listed when I do PHP -m too, but I STILL get the NetBeans problem. Strange enough php -i shows version 5.2.10, not 5.2.11 as above!I also tried this, adding the "netbeans-xdebug" for idekey: Why does xdebug not establish connection with NetBeans?How come PHP_INFO() seemed to find my PHP.INI file under ../MAMP/... and not when doing PMP -m when it is read from /etc ?How can I get PHP to always find the INI file under MAMP so I dont have to use two PHP.INI files to et PHPINFO() and PHP -m to work?How can I resolve the NetBeans problem now that xDebug seems to be installed correctly but still not working in NetBeans? Something with this need for dual php.ini? Could I have compiled xdebug wrong, how to know? Something with php versions in xdebug / php? How to check?Here is a part of the result from php -i:\[code\]xdebugxdebug support => enabledVersion => 2.0.4Supported protocols => RevisionDBGp - Common DeBuGger Protocol => $Revision: 1.125.2.6 $GDB - GNU Debugger protocol => $Revision: 1.87 $PHP3 - PHP 3 Debugger protocol => $Revision: 1.22 $Directive => Local Value =http://stackoverflow.com/questions/2002481/> Master Valuexdebug.auto_trace => Off => Offxdebug.collect_includes => On => Onxdebug.collect_params => 0 => 0xdebug.collect_return => Off => Offxdebug.collect_vars => Off => Offxdebug.default_enable => On => Onxdebug.dump.COOKIE => no value => no valuexdebug.dump.ENV => no value => no valuexdebug.dump.FILES => no value => no valuexdebug.dump.GET => no value => no valuexdebug.dump.POST => no value => no valuexdebug.dump.REQUEST => no value => no valuexdebug.dump.SERVER => no value => no valuexdebug.dump.SESSION => no value => no valuexdebug.dump_globals => On => Onxdebug.dump_once => On => Onxdebug.dump_undefined => Off => Offxdebug.extended_info => On => Onxdebug.idekey => pettermagnusson => netbeans-xdebugxdebug.manual_url => http://www.php.net => http://www.php.netxdebug.max_nesting_level => 100 => 100xdebug.profiler_aggregate => Off => Offxdebug.profiler_append => Off => Offxdebug.profiler_enable => Off => Offxdebug.profiler_enable_trigger => Off => Offxdebug.profiler_output_dir => /tmp => /tmpxdebug.profiler_output_name => cachegrind.out.%p => cachegrind.out.%pxdebug.remote_autostart => Off => Offxdebug.remote_enable => On => Onxdebug.remote_handler => dbgp => dbgpxdebug.remote_host => 127.0.0.1 => 127.0.0.1xdebug.remote_log => /tmp/xdebug.log => /tmp/xdebug.logxdebug.remote_mode => req => reqxdebug.remote_port => 9000 => 9000xdebug.show_exception_trace => Off => Offxdebug.show_local_vars => Off => Offxdebug.show_mem_delta => Off => Offxdebug.trace_format => 0 => 0xdebug.trace_options => 0 => 0xdebug.trace_output_dir => /tmp => /tmpxdebug.trace_output_name => trace.%c => trace.%cxdebug.var_display_max_children => 128 => 128xdebug.var_display_max_data => 512 => 512xdebug.var_display_max_depth => 3 => 3\[/code\]RgdsPM