CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Debug
Pages: [1]

Author Topic: Debug  (Read 3139 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Debug
November 27, 2009, 03:45:20 pm
It's possible all other people are wonderfully organised and never lose track of when they turn debugging on but just maybe there are other people out there who think it would be great if Civi had some visual reminder of when debug is on....
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Debug
December 01, 2009, 05:07:34 pm
Hi Eileen - I agree since it's not a good thing to leave debug enabled on production sites. I've added a warning displayed on all non-public pages for 3.1. Check it out and let me know what you think.

http://issues.civicrm.org/jira/browse/CRM-5469
Protect your investment in CiviCRM by  becoming a Member!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Debug
December 01, 2009, 05:18:09 pm
Is this running on the sandbox yet - I can't see any message
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Debug
December 01, 2009, 05:41:32 pm
Sandbox gets updated from svn periodically. Should show up there in the next 24 hours or so :-)
Protect your investment in CiviCRM by  becoming a Member!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Debug
December 01, 2009, 09:52:59 pm
Would it be possible to have a per user debug ?

Eg. a new access right, so the dev/admin can see the debug, but not the others ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Debug
December 02, 2009, 11:02:05 am
Currently debug setting is stored in civicrm_domain.config_backend - so user specific setting would require a schema change (and not sure how much code change in how config object is built and managed).
Protect your investment in CiviCRM by  becoming a Member!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Debug
December 03, 2009, 04:40:05 am
I see,

I know we do have a different opinion on the config in the config file vs. in the db, but what would be the technical implication of:

we add a $debug_access_required = "civicrm admin" (or civicrm access or any of the defined access levels).

If the current user has the right permission and the debug is on in the civicrm_domain.config_backend, then the debug is printed. If not no debug.

For compatibility reasons, if the debug_access_required is undefined, same behaviour as now.

Would it have a technical implications, eg slowing down the system, or being complicated to add, or ... ?

Otherwise, I'd put by default that only admins can see the debug, and be happy leaving the debug on all the time in production

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Debug

This forum was archived on 2017-11-26.