Have you rectified the issue ? If not then please try this.
1.) php.ini
file content
[xDebug]
zend_extension = "c:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
;xdebug.remote_host="localhost:81"
xdebug.remote_host=192.168.1.5
;xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"
xdebug.remote_host=192.168.1.5
– This is the IPv4 address of my system, I changed to this because I couldn’t debug with localhost
and 127.0.0.1
.
in NetBeans IDE, open Tools-> Options -> PHP -> Debugging
. The values of debugger port and Session Id should match with the port and idekey specified in php.ini
.
Now save php.ini, restart Apache and try to debug.
Thanks Johnson