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://gabrielsilva.dev.br/glowie/debugger
Informations about the package debugger
Debugger for Glowie
Debugger is a plugin for Glowie Framework with a powerful debug bar for developers.
Features
- Beautiful and simple debug bar with zero configuration
- Print and filter messages, warnings, errors and variables to a console window
- Catch and print exceptions and stack traces to the console
- Measure long operations to a timeline and improve your app performance
- Inspect Request and Response variables and headers
- Inspect Session and Cookies data
- Log SQL queries, bindings and query durations
- Inspect rendered views, layouts and all its parameters
- Inspect application info, routes, memory usage, software versions, request time and more
- Automatic light and night mode themes
Installation
Install in your Glowie project using Composer:
Then add the Debugger class to the app/config/Config.php
file, into the plugins
array:
Inside your application main layout or desired view, add the Skeltch directive to the bottom of the page, before the closing </body>
tag:
If you are not using Skeltch templating engine, you can also use the default PHP call:
Debug mode
The debug bar must not be used in production mode. In order to work, the APP_DEBUG
configuration in your app .env
file must be set to true
. Don't forget to disable this in production environment.
Enabling or disabling the debug bar at runtime
To enable or disable the rendering of the debug bar at runtime, use:
Note: The
enable()
method won't do anything if the debug mode is disabled in your app env.
Usage
Console window
To send messages to the console window, use any of the following methods:
Exceptions window
To catch exceptions and print them to the exceptions tab, use:
Timeline window
You can measure operations using:
Clear information
In order to clear the debug bar data, use:
Credits
Debugger and Glowie are currently being developed by Gabriel Silva.