CodeIgniter Forums
Any special configuration needed for PhpEd DBG - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Any special configuration needed for PhpEd DBG (/showthread.php?tid=5551)



Any special configuration needed for PhpEd DBG - El Forum - 01-25-2008

[eluser]Dsyfa[/eluser]
Hi,

I just installed PhpEd with the built-in debugger but I cant get the debugger to work as I want it to. When I start debugging from index.php, the debugger opens up loads of CI base classes and libraries and then reaches my controller class after ages!! How can I begin debugging from my controller class and is there a way to auto include all the necessary base classes before hand so the debugger doesn't have to include them each time I start a debugging session?

Thanks


Any special configuration needed for PhpEd DBG - El Forum - 02-29-2008

[eluser]dennismayflower[/eluser]
i cannot even get it to run, because of the DBGSESSID that phped inserts and CI doesn't understand. I even reworked somebody patchhere, it didn't work.

the debugger actually steps through the index and CI files, but ends up with the error messages that i mentioned in the post above...

http://support.nusphere.com/viewtopic.php?t=3204&highlight=codeigniter

the above link is about getting the nusphere debugger to work with codeigneter, they say it works with the internet toolbar (IE : view->toolbars->Nusphere Toolbar. But not too much luck for me...


Any special configuration needed for PhpEd DBG - El Forum - 09-15-2008

[eluser]Unknown[/eluser]
I have the same problem to debug with PHPEd and i do that:

in your application/config/config.php add lines:

Code:
if (isset($_REQUEST['DBGSESSID'])){
    $config['index_page'] = "index.php?DBGSESSID=".$_REQUEST['DBGSESSID'];
}else{
    $config['index_page'] = "index.php";
}

unset($_GET['DBGSESSID']);
if (isset($_SERVER['QUERY_STRING'])){
    $_SERVER['QUERY_STRING'] = preg_replace('`DBGSESSID.*?c=\d(.*)`','$1',$_SERVER['QUERY_STRING']);
    $_SERVER['QUERY_STRING'] = trim($_SERVER['QUERY_STRING'],'&');
    $_SERVER['PATH_INFO'] = $_SERVER['QUERY_STRING'];
}

instead of the line :
Code:
$config['index_page'] = "index.php";

Now PHPEd seem to work well with CI.