Debugging with CodeIgniter


#1

Hi, Im currently creating a project using CodeIgniter. I’m trying to debug some code i have written in one of my controllers, however when the browser hits the file with the breakpoints, my code breaks for about 1-5 seconds, where i can see all debug, stack and variable information within the IDE, however the code then automatically continues, so i lose all debug info.

How do i stop this from happening, so i can view all the scopes, and also step if needed?

Ive narrowed this down to the .htaccess file with CodeIgniter - If you remove the file, the debugging works. The .htaccess file looks like

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

How can i fix this?


#2

what url do you use for preview? does it behave the same way if rewrite rules above do not apply?


#3

The URL I use is c9domain.com/controller

If I remove the rewrite rules from the .htaccess file, then debugging works again, as tested on the main index.php file. However I can not load any of my controllers as this load as part of the URL.