XDebug can be used to debug a PHP application. Basically you install this on your server and configure it in PHP.ini. Then on your desktop computer you can configure Netbeans (and possibly Eclipse, but I have not tried this) to remotely debug. When you are in a remote debugging session, you can do any of the things you usually expect: set breakpoints, execute code, etc.
One of the main annoyances when using CodeIgniter with mod_rewrite is that the debugger is confused by index.php, which does not appear in the url. I'm not sure if this is a problem on the client or server side, and whether the CI "has" a part of the GET URL. In any case, I worked on this by copying the "debug.php" file to the server and started debugging with this file - after that everything works fine.
In any case, I highly recommend that you set up the XDebug setup at some point. You can not use it every day, but when you need it, you will be grateful that you did your homework ahead of time.
Justin ethier
source share