php 7.1 xampp 7.1.1 NetBeans 8.2 Debug

 

1.

install xampp 7.1.1

https://www.apachefriends.org/download.html

NetBeans 8.2.  https://netbeans.org/downloads/

2.

download xdebug dll in this folder:

C:\xampp\php\ext\php_xdebug-2.5.0-7.1-vc14.dll

3.

Modify php.ini file:

(1) output_buffering = Off

(2)

[XDebug]
zend_extension = "c:\xampp\php\ext\php_xdebug-2.5.0-7.1-vc14.dll"
xdebug.remote_autostart = 1
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "c:\xampp\tmp"
;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_log="c:\xampp\tmp\xdebug.txt"
xdebug.remote_port = 9000
xdebug.trace_output_dir = "c:\xampp\tmp"
; 3600 (1 hour), 36000 = 10h
xdebug.remote_cookie_expire_time = 36000

 

Ref: https://gist.github.com/odan/1abe76d373a9cbb15bed

4.

Chrome enable 2 extensions:

NetBeans Connector
Xdebug helper