How to Use Xdebug for PHP with Netbeans on FreeBSD
Netbeans itself ships with PHP Xdebug support enabled by default. To get the two working together correctly there are additional steps required. The following is a clear set of instructions on how configure Xdebug, Netbeans, and PHP on FreeBSD using best practices.