ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

$config['debug'] ??

March 21, 2011 8:10pm

Subscribe [3]
  • #1 / Mar 21, 2011 8:10pm

    vicos

    22 posts

    I can not find any documentation for $config[‘debug’] in config.php.

    It is currently set to ‘1’ out-of-the-box

    what are the possible values and which is best for running in production mode?

  • #2 / Mar 22, 2011 1:00pm

    Lisa Wess

    20502 posts

    Hi, vicos!

    0 is “suppress all errors” - not recommended

    1 is “show errors to Superadmins”. - recommended

    2 is “show errors to everyone” - not recommended

    Does that help?

  • #3 / Mar 22, 2011 1:10pm

    Mark Bowen

    12637 posts

    Just as a note this is also the same as using the :

    Admin->System Administration->Output and Debugging Preferences

    preference in the control panel. You’ll get the same information Lisa has shown above shown there too.

    It’s easier to set using the control panel but can obviously be done either way depending on your preference.

    Also as a note if you have it set to 0 I believe that you can get some errors with javascripts too if you’re using them so definitely best to leave it on 1 during normal operations.

    Best wishes,

    Mark

  • #4 / Mar 23, 2011 7:34am

    John Henry Donovan

    12339 posts

    Thanks Mark. Does this help, vicos?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases