mohamed-hathout/debugger
最新稳定版本:v1.4.0
Composer 安装命令:
composer require mohamed-hathout/debugger
包简介
A powerful Laravel debugging tool with real-time monitoring, query debugging, and variable inspection capabilities
README 文档
README
A powerful debugging tool for Laravel applications that allows you to monitor and analyze debug data in real-time with advanced filtering and visualization capabilities.
Requirements
- PHP ^8.3
- Laravel ^12.19
Installation
composer require mohamed_hathout/debugger
Configuration
After installation, publish the configuration file:
php artisan vendor:publish --provider="MohamedHathout\Debugger\DebuggerServiceProvider"
This will publish:
- Configuration file (
config/debugger.php) - Views (optional)
Usage
Basic Debugging
// Debug any variable debug($variable); // Debug an Eloquent query debug_query($query);
Configuration Options
In config/debugger.php:
return [ 'truncate_tables' => false, // Whether to use TRUNCATE instead of DELETE when clearing data 'sort' => 'desc', // Sort order for debug entries 'route_name' => 'debugger', // URL path for the debug viewer 'is_enabled' => true, // Enable/disable debugging 'storage_type' => 'database', // 'database' or 'cache' 'cache' => [ 'key_prefix' => 'debugger:', 'counter_key' => 'debugger:counter', 'index_key' => 'debugger:index', 'files_key' => 'debugger:files', 'ttl' => 3600, // Cache TTL in seconds ], ];
Debug Viewer
Access the debug viewer at /debugger (or your configured route) to see all debug entries with:
- Real-time updates
- Type filtering (text, number, JSON)
- File filtering
- Search functionality
- Copy to clipboard
- Clear all data
Features
- Debug any variable type (text, numbers, arrays, objects)
- Query debugging with bindings resolution
- Real-time debug viewer with Livewire
- Advanced filtering and search
- Database or cache storage options
- Configurable settings
- Bootstrap 5 UI with dark mode support
License
The MIT License (MIT).
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-20