Please go through following articles to install Xdebug and setup with different local development environment and editors.
Check the link which match your installation enviourement.
- Valet - PhpStorm Learn how to set up Xdebug for PhpStorm and Laravel Valet
- Valet - Netbeans XDebug, Laravel Valet, NetBeans
- VVV - PhpStormDebugging VVV Vagrant Setup With PhpStorm
- VVV - Netbeans VVV - Using Netbeans with XDebug
- Easyengine - NetbeansEasyEngine - Install Xdebug and configure it with Netbeans