summaryrefslogtreecommitdiff
path: root/doc/developers/debugging
blob: 7f84da6e5e5c58707b115206ad74e638e0fdfc9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
How to debug SemanticScuttle
============================


Database queries
----------------
In config.php, enable debugMode.
Further, add the following there:
-------
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.