CodeIgniter Forums
CI + Eclipse + Xdebug - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CI + Eclipse + Xdebug (/showthread.php?tid=19936)



CI + Eclipse + Xdebug - El Forum - 06-23-2009

[eluser]Unknown[/eluser]
Hi,

while debugging a CI application using Eclipse and Xdebug, I encountered the error "The URI you submitted has disallowed characters.", which is because of the extra query string that is used for Xdebug.

this is a little workaround (version 1.7.1), in file 'system/libraries/URI.php', line 83:

original:

Code:
// No PATH_INFO?... What about QUERY_STRING?
            $path =  (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING');
            if (trim($path, '/') != '')
            {
                $this->uri_string = $path;
                return;
            }

modified:

Code:
// No PATH_INFO?... What about QUERY_STRING?
            $path =  (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING');
            if (trim($path, '/') != '')
            {
                if(substr($path, 0, 14) != 'XDEBUG_SESSION')
                {
                    $this->uri_string = $path;
                    return;
                }
            }


(the other workarounds I found, worked only with 1 query parameter, Xdebug
is using 2 parameters)


maybe this is useful for somebody, debugging works really good with Eclipse/Xdebug...

regards,
Patrick