XDEBUG configuration in PHP.ini ( Cakephp, Appserv - Apache2.4, Netbeans)

Asked

Viewed 452 times

0

My friends, good afternoon

I’m new to the piece, I mean, in the PHP development area and I’m making the settings to debug an application in Cakephp 2.6.

I followed all the XDEBUG documentation, downloaded the version compatible to my PHP 5.6 (Windows 64bits), includes 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 that, second step, 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 some tips? What I’m doing wrong?

Thank you very much!

Marcelo

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 php lib to run direct Debugger on the terminal (like Python ipdb or Ruby Byebug).

https://github.com/tacnoman/dephpugger

  • Thank you Renato, I will try to use Cakephp’s dephpugger and Unit test

Browser other questions tagged

You are not signed in. Login or sign up in order to post.