Modify the php.ini file
Original Configuration
[XDebug]
; zend_extension = "E:\xampp\php\ext\php_xdebug.dll"
; xdebug.profiler_append = 0
; xdebug.profiler_enable = 1
; xdebug.profiler_enable_trigger = 0
; xdebug.profiler_output_dir = "E:\xampp\tmp"
; xdebug.profiler_output_name = "cachegrind.out.%t-%s"
; xdebug.remote_enable = 0
; Xdebug.remote_handler = "DBGP"
; xdebug.remote_host = "127.0.0.1"
; xdebug.trace_output_dir = "E:\xampp\tmp"
Debug Configuration
[XDebug]
Zend_extension = "E:\xampp\php\ext\php_xdebug.dll"
; xdebug.profiler_append = 0
; xdebug.profiler_enable = 1
; xdebug.profiler_enable_trigger = 0
; xdebug.profiler_output_dir = "E:\xampp\tmp"
; xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = "On"
Xdebug.remote_handler = "DBGP"
Xdebug.remote_host = "localhost"
xdebug.remote_port= "9000"
; xdebug.trace_output_dir = "E:\xampp\tmp"
Setting Up NetBeans Debugging
Under Tools, Options,
Restart Apache
NetBeans Debugging PHP