aboutsummaryrefslogtreecommitdiff
path: root/doc/developers/debugging.rst
blob: 6bee309dc5c321744137885fd931b49aa0ddb7a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
How to debug SemanticScuttle
============================


Database queries
----------------

In ``data/config.php``, enable ``debugMode``.
Further, add the following afterwards: ::

  register_shutdown_function(
      create_function('', <<<FNC
  \$GLOBALS['db'] = SemanticScuttle_Service_Factory::getDb();
  \$GLOBALS['db']->sql_report('display');
  FNC
      )
  );


To see database queries in SemanticScuttle, add ::

  ?explain=1

to your URL.