- Make sure xdebug is enabled in your php installation
- The following lines worked for me in my php.ini with PHP 7.2 on Windows 10
[xdebug]
zend_extension ="php_xdebug-2.6.1-7.2-vc15-x86_64.dll"
;xdebug.remote_enable=1
;xdebug.remote_handler=dbgp
;xdebug.remote_mode=req
;xdebug.remote_host=127.0.0.1
;xdebug.remote_port=9000
xdebug.remote_autostart=off
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
;xdebug.remote_host="localhost:81"
;xdebug.remote_host=localhost:8000
xdebug.remote_host=10.0.0.200
;xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"
Obviously replace xdebug.remote_host=10.0.0.200 with the ipaddress of your machine running Netbeans
In Netbeans Tools > Options > PHP > Debugging
Debugger Port: 9000
Session ID: netbeans-xdebug
Maximum Data Length: 4096
I ran the built in php server in a terminal and then configured my netbeans project to Run As local website running on local server with Project Url: http://localhost:8000/ (my built-in PHP webserver was running on port 8000).