Preamble
After many hours, I have been unable to get NetBeans to connect to xdebug. Some months ago, after upgrading from an old version of MAMP to MAMP
Xdebug will only connect if there is an index.php file in your project folder, so check to make sure you have one.