Koala Framework provides a few useful debugging tools.
Disable Error Log
When developing locally you should always disable the error log - which will result in errors getting printed directly.
debug.error.log = false in
Further it is recommended to
enable display_errors in
php.ini for local development and test servers.
p("abc")(p stands for print): echo given expression
d("abc")(d stands for die): echo given expression and die after that
bt()(bt stands for backtrace): echo backtrace
Kwf_Debug::enable(): disable any debug output until it's enabled again. (can be called multiple times)
Useful to profile or debug sql queries.
To enable set
debug.querylog = true in
config.local.ini. All sql queries will be logged into a file querylog in the
application root. Some useful statistics are included.
Useful to debug events (mainly used for clearing view cache).
Similar to querylog, can be activated using
debug.eventlog = true in
Shows a box containing various benchmarks for every frontend page in the top right corner. Numbers like elapsed time, used memory, loaded classes, created component objects are included.
To enable set
debug.benchmark = true in
Enable in Production
It is also possible to enable the benchmark output by adding a KWF_BENCHMARK get parameter to the Url.
This however only works for a whitelist of remote ip addresses which can be defined in
We also reccomend using xdebug php extension for development servers.