Dialogs Framework Basic Concepts
Dialogs Feature: Debugging Tool and Techniques
Updated: 21 Apr 2023
- The Dialogs LOG (Tools section of the main Dialog sidebar nav) includes error messages and a trace of the functions run before the error occurred.
- Check the "Debug" checkbox on the List Detail View for a List to automatically log helpful information when debugging List behavior.
- If you want to add some of your own use the
log_message()
function$this->log_message('Hello World.');
- Check the Apache error log. It's called 'error_log' and it's location varies with the particular Apache installation. If you're getting the 'White Screen of Death', the reason is probably spelled out in that log. Usual suspects are mis-spelled functions, using
$this
outside an object, and syntax errors. - You can check for PHP syntax errors using the unix (or linux or Mac) command line. (That's a lower case 'L' not the numeral 1. It stands for 'lint' which is what you're picking out of the belly button of your code.)
php -l somescript.php
- Another source of the 'White Screen of Death' is the security in
KD_sanitize.inc.php
It can be pretty strict but don't just turn it off. Don't be that guy.