Welcome Guest, Not a member yet? Register   Sign In
Debugging with Zend Studio (Eclipse)
#1

[eluser]doMynation[/eluser]
Good day fellow CIers,

I'm trying to debug my CI website with Zend studio for eclipse, and it doesn't work because of the disallowed characters that the debugger pushes in the URL automatically.

I am first trying to debug the index.php for (http://192.168.1.125/sdp/index.php), then I will add some parameters to test some controllers.

Here is what the eclipse debugger adds to the URL:
http://192.168.1.125/sdp/index.php?use_r...bug_stop=1


I get an error saying:

An Error Was Encountered
The URI you submitted has disallowed characters.


I've tried adding the caracters appearing in this URL that aren't already in the
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

And I get another error saying:

A PHP Error was encountered

Severity: Warning

Message: preg_match() [function.preg-match]: Compilation failed: range out of order in character class at offset 19

Filename: libraries/URI.php

Line Number: 189


Am I doing something wrong ?
#2

[eluser]TheFuzzy0ne[/eluser]
The error is at offset 19 of the compilation, but your allowed URI chars regex is only 14 characters in length. That's really bizarre.

EDIT: I think you need to enable query strings for debugging.
#3

[eluser]doMynation[/eluser]
Okay I've enabled the query strings.

However I'm using clean URLs.

And all the URL parameters added by the debugger gives another error which is Page not found.
#4

[eluser]TheFuzzy0ne[/eluser]
This post might help you - http://ellislab.com/forums/viewthread/68393/
#5

[eluser]CrazyMerlin[/eluser]
What I do is this:

After the first file check in the Router.php file in the function _validate_request I add:

Code:
//Check for Zend Debugging
if(substr($segments[0], 0, 11) == 'start_debug')
{
    $segments[0] = '';
}

That clears the segment of the debug string and so then continues on to the default controller.

Hope that helps.




Theme © iAndrew 2016 - Forum software by © MyBB