Look at index.php in the root of the project. If
you plan on setting it up for the production
environment (i.e. disable the error reporting)
then set the environment to production.
You can also make changes to the error_reporting
settings yourself in the same file
To be able to access a property of the currently
loaded controller from within a model in CI you'll
need to do the following:
either in your Models specific method or within
its constructor put:
$this->CI = & get_instance();
Then say you'll be able access your debug_data
Hope this helps!