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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Find the SQL queries on the debug ?
Pages: [1]

Author Topic: Find the SQL queries on the debug ?  (Read 1103 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Find the SQL queries on the debug ?
December 10, 2008, 09:51:37 am
Hi,

I would like to see in the debug the sql queries as generated on any given page, but can't put my hand on the config to put &Debug something ?

Does it exist or am I confusing with another tool ?

X+

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

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Find the SQL queries on the debug ?
December 10, 2008, 10:19:57 am

add:

define( 'CIVICRM_DAO_DEBUG', 1 );

this will output all the queries to the screen etc. It generates a fair amount of output (its the pear library's debug stuff, not ours :P)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Find the SQL queries on the debug ?

This forum was archived on 2017-11-26.