In php.ini add
; XDEBUG Extension zend_extension = "**ABSOLUTE_PATH_TO_XDEBUG_EXTENSION**" [xdebug] xdebug.remote_enable = off xdebug.profiler_enable = off xdebug.profiler_enable_trigger = off xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.profiler_output_dir = "**PATH_TO_TMP_DIRECTORY**"
In the NetBeans IDE, select Tools> Settings> PHP> Debugging
Debug Port: 9000
Session ID: netbeans-xdebug
CHECK: Stop on the first line
Open the project. Go to Project Properties> Run Configuration . Set
Run as: local website (running on local web server)
Project URL: http: // localhost / PROJECT_PATH /
Index file: index.php
Save the project file Restart Apache Restart NetBeans, open the project, then
Debugging> Debugging Project
Should you see http: //localhost/PROJECT_PATH/index.php in the browser ? XDEBUG_SESSION_START = netbeans-xdebug in the browser, and NetBeans should stop in the first line of index.php
source share