Configure xdebug and XAMPP with netbeans

open php.ini and uncomment, modify, add these lines

[XDebug]
zend_extension = “C:xamppphpextphp_xdebug.dll”
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
;xdebug.profiler_output_dir = “C:xampptmp”
;xdebug.profiler_output_name = “cachegrind.out.%t-%s”
xdebug.remote_enable = 1
xdebug.remote_handler = “dbgp”
xdebug.remote_host = “127.0.0.1”
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey=”netbeans-xdebug”
;xdebug.trace_output_dir = “C:xampptmp”

make sure the line “zend_extension…” is uncommented andxdebug.remote_enable is set to 1.

xdebug.idekey should be set to be the same as Netbeans’ PHP debug setting, by default it’s “netbeans-xdebug”. Same for remote_port and remote_mode.

Leave a Reply

Your email address will not be published. Required fields are marked *