Codeigniter + NetBeans + XDebug : Debugger not working after redirect() Codeigniter + NetBeans + XDebug : Debugger not working after redirect() codeigniter codeigniter

Codeigniter + NetBeans + XDebug : Debugger not working after redirect()


Found a solution. Perhaps this might help someone else who has been struggling with this. Apparantly to allow smooth debugging, you need to include the option:

xdebug.remote_autostart=1

in your php.ini. These settings work for me now:

xdebug.remote_enable=onxdebug.remote_handler=dbgpxdebug.remote_host=localhostxdebug.remote_port=9000xdebug.remote_autostart=1

The last line is the option I found on (Xdebug Official Documentation). The relevant part of the documentation is mentioned below:

xdebug.remote_autostart

Type: boolean, Default value: 0

Normally you need to use a specific HTTP GET/POST variable to start remote debugging (see Remote Debugging). When this setting is set to 1, Xdebug will always attempt to start a remote debugging session and try to connect to a client, even if the GET/POST/COOKIE variable was not present.


I found the same problem, and fixed it by upgrading my version of xdebug.

There appears to have been a bug in the version I was using (xdebug 2.1.3), but it all works fine on xdebug 2.2.3.

Use this tool for custom installation instructions for your environment.http://xdebug.org/wizard.php


Be aware that netbeans doenst work with $_SERVER['PATH_INFO'] and url like http://127.0.0.1/site/test.php/v1/v2/parametertoputonphpathinfo/v3, there is a bug of Mon Sep 09, 2013 8:54 am on netbeans board telling about it without response until now 2014:

http://forums.netbeans.org/topic56645.html

It make impossible debug frameworks using that sinatra way to routing requests.
Rewriting my simple Sinatra router to have a $_GET mode to debug and a better hook code.