XDEBUG configuration in PHP.ini (CakePHP, AppServ - Apache2.4, NetBeans)

0

My friends, good afternoon

I'm new to the piece, that is, in the PHP development area and I'm making the settings for debugging an application in CakePHP 2.6.

I followed all the XDEBUG documentation, downloaded the version compatible with my PHP 5.6 (Windows 64bits), included the file in the folder below, inside my local directory, where I use AppServ with an Apache server.

C: \ AppServ \ php5 \ ext \ php_xdebug-2.5.0-5.6-vc11-x86_64.dll

After this, step two, I set up the PHP.ini file

zend_extension="C:\AppServ\php5\ext\php_xdebug-2.5.0-5.6-vc11-x86_64.dll"

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000 (A minha aplicação está rodando na porta 9090. Mas já fiz um teste também atribuindo a porta 9090 e não funcionou).
xdebug.extended_info=1
xdebug.default_enable = On
xdebug.collect_includes = On
xdebug.collect_params = On
xdebug.collect_return = On
xdebug.collect_vars = On
xdebug.dump_globals = On

Could you help me with any tips? What am I doing wrong?

Thank you!

Marcelo

    
asked by anonymous 03.02.2017 / 13:59

1 answer

0

For windows it's really complex. If you use vagrant or docker (or Linux itself) you can use Dephpugger. Dephpugger is a lib in php for running direct debugger on the terminal (type Python ipdb or Ruby Byebug).

link

    
12.03.2017 / 18:12