Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Debugging and logs

Find out what your application does - debug output and the debug bar, template path comments, eZDebug in code, the log files and Setup > Logs, error references, request logs, and debugging under Velocity.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/app-creators/debugging-and-logs.md

On this page

Debugging and logs

This page is for application creators who need to see inside a request. Exponential has a debug output and debug bar for development, log files for everything, and an error reference that links what a user sees to the log line.

Contents

  1. Debug output and the debug bar
  2. Writing debug and log lines
  3. The log files
  4. From an error page to the log line
  5. Debugging under Velocity

Debug output and the debug bar

On a development machine:

# settings/override/site.ini.append.php (development only)
[DebugSettings]
DebugOutput=enabled

[TemplateSettings]
ShowTemplatePathComments=enabled

The debug bar shows queries, templates used, settings, timings and caches for the page (Exp debug bar, Debug bar). Template path comments show which file wrote which markup (Template path comments). Never enable debug output on a production siteaccess; it can show internals.

Writing debug and log lines

eZDebug::writeNotice( 'Imported 12 items', __METHOD__ );
eZDebug::writeWarning( 'Item 42 had no title', __METHOD__ );
eZDebug::writeError( 'Feed could not be read: ' . $message, __METHOD__ );
eZLog::write( 'archive sent for object ' . (int)$objectID, 'expdemo.log' );

Warnings and errors go to var/log/warning.log and var/log/error.log whatever the debug setting; eZLog::write() writes a log of your own in the log directory. Never log passwords, keys, tokens or personal data.

The log files

FileHolds
var/log/error.log, warning.logerrors and warnings
var/log/csp.logContent Security Policy reports
var/log/security.logsecurity events
your own *.logwhat your code writes

Setup > Logs shows them with a digest of repeated messages (Log viewer); logs rotate (Log rotation). Request logs record requests with timings (Request logs).

From an error page to the log line

Error pages carry a reference; search the logs for it to find the full message (Finding an error by its reference).

Debugging under Velocity

  • Workers keep classes and settings in memory: after a change, exp:velocity deploy (or restart), or you debug old code.
  • The server's own logs are under var/vc/qbix/run/ and the configured log directory (8.3.12 Logs).
  • Compare with PHP's built-in server (--engine=php), which runs each request fresh, when you suspect state kept between requests (Velocity persistent worker server).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x