Download the PHP package glowieframework/debugger without Composer
On this page you can find all versions of the php package glowieframework/debugger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download glowieframework/debugger
More information about glowieframework/debugger
Files in glowieframework/debugger
Package debugger
Short Description Glowie debug bar plugin
License MIT
Homepage https://glowie.gabrielsilva.dev.br
Informations about the package debugger
Debugger for Glowie
Debugger is a plugin for Glowie Framework that provides a powerful and elegant debug bar for developers.
Features
- Clean and intuitive debug bar with zero configuration
- Log and filter messages, warnings, errors, and variables in a built-in console
- Capture and display exceptions with full stack traces
- Track long-running operations in a performance timeline
- Inspect Request and Response data, including headers
- View Session and Cookie information
- Log SQL queries with bindings and execution time
- Inspect rendered views, layouts, and their parameters
- Monitor application details such as routes, memory usage, software versions, request time, and more
- Automatic light and dark theme support
Installation
Install Debugger in your Glowie project using Composer:
Then add the Debugger class to the plugins array in app/config/Config.php:
Next, add the Skeltch directive at the bottom of your main layout or desired view, just before the closing </body> tag:
If you are not using the Skeltch templating engine, you can render the debug bar using the default PHP call:
Debug mode
The debug bar should never be used in production. To enable it, the APP_DEBUG value in your .env file must be set to true.
Make sure to disable this in your production environment.
Enabling or disabling the debug bar at runtime
You can control the debug bar rendering dynamically:
Note: The
enable()method will have no effect if debug mode is disabled in your environment configuration.
Usage
Console window
Send messages to the console using the following methods:
Exceptions window
Capture exceptions and display them in the Exceptions tab:
Timeline window
Measure execution time of operations:
Cross-request data
By default, Debugger data is stored only for the current request. Each new request clears the previous information.
To persist debug data across requests:
Clearing information
You can clear specific sections of the debug bar:
Credits
Debugger and Glowie are currently developed by Gabriel Silva.