-
-
Notifications
You must be signed in to change notification settings - Fork 57
Debug and Tester Modes
Daniel Pimley edited this page Mar 22, 2025
·
18 revisions
If you want to develop an extension for Chyrp Lite, you should enable debug mode; this is done by creating a file named DEBUG in the includes directory.
Debug mode is intended to ease debugging and testing processes. Debug mode has the following effects on Chyrp Lite's behaviour:
- Sets PHP error reporting to
E_ALL | E_STRICT. - Sets the Twig environment options
debugandstrict_variablestotrue. - Logs information and errors to the file error_log.txt in the install directory.
- Reports backtraces when errors are encountered.
- Reports Flash notification counts using
X-Chyrp-Flash-response headers.
This is the wiki for Chyrp Lite: An ultra-lightweight blogging engine, written in PHP.
- About Permissions
- Tour of a Theme
- Twig Reference
- Twig Variables
- Object Attributes
- Routes and Controllers
- Making Your First Module
- Debug and Tester Modes
- About Errors
- Introduction to Helpers
- Introduction to Translations
- Introduction to Triggers
- Anatomy of info.php Files
- Anatomy of a Feather
- Anatomy of a Module
- Anatomy of a Theme
- Anatomy of a Post
- Localizing Extensions
- Adding Ajax Functionality
- Working with JavaScript
- Working with Model
- Working with Config