Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

1.3. The DBAL Debug backend module

The debug log

When the debug options are enabled queries are logged to a table including various details. You can use the “DBAL debug” backend module to view the log:

Above the table you see a few items to click on:

  1. FLUSH LOG clears the logging table.

  1. JOINS shows you the logged table joins, if that feature has been enabled.

  2. ERRORS shows just the entries that caused an error.

  3. PARSING shows the results of the SQL parsing check, if that feature has been enabled.

  4. LOG is what you see when you enter the module.

  5. WHERE shows a log of all WHERE-clauses. This may be used to optimize the database structure or spot performance bottlenecks.

The main log table shows you when how many queries where executed from what script in how much time. If an error occurred, this is noted as well. If you click on the script name, you'll get a list of all queries to help you with debugging.

Viewing cached database information

The DBAL extension makes heavy use of caching for field information. This includes primary keys, auto_increment fields and native/meta types of fields.

To see the cached data select View cached data  in the DBAL Debug backend module. From there you can clear the cache file, if that seems necessary (it is automatically cleaned whenever the database structure is changed from within TYPO3).

Viewing the configuration

The configuration as it has been defined in localconf.php can be checked in the backend by using the Configuration module in the Tools section. Select $TYPO3_CONF_VARS and open the EXTCONF/dbal part of the tree display.