october/debugbar 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

october/debugbar

Composer 安装命令:

composer require --dev october/debugbar

包简介

Debugbar integration for October CMS.

README 文档

README

October CMS

Introduction

October CMS Debugbar integrates Laravel Debugbar with October CMS, adding custom data collectors for backend controllers, CMS pages, components, and models.

Requirements

  • October CMS 4.x
  • PHP 8.2+

Installation

composer require october/debugbar --dev

The debugbar is enabled automatically when APP_DEBUG=true. You can override this with the DEBUGBAR_ENABLED environment variable.

October CMS Collectors

In addition to the standard Laravel Debugbar collectors, the following October-specific collectors are included:

Collector Description
Backend Shows the backend controller, action, parameters, and AJAX handler with file location
CMS Shows the CMS page, URL, AJAX handler, and page properties with file location
Components Lists all components from the page and layout with their class and properties
Models Tracks October model instantiation counts via the model.afterFetch event

Configuration

Publish the configuration file to customize collector settings:

php artisan vendor:publish --provider="October\Debugbar\ServiceProvider" --tag=config

Or create config/debugbar.php manually. See the default configuration for available options.

AJAX Debugging

AJAX requests are captured by the debugbar automatically and displayed in the toolbar dropdown. To disable this, set capture_ajax to false in config/debugbar.php.

Troubleshooting

Out of memory errors

If the debugbar causes out-of-memory errors, the cache collector is the most common cause on requests that perform many cache reads. It is disabled by default; if you have enabled it, set it back to false in config/debugbar.php:

'collectors' => [
    'cache' => env('DEBUGBAR_COLLECTORS_CACHE', false), // Display cache events
],

The models, views, and events collectors can also significantly increase memory usage and are disabled by default for the same reason.

License

October CMS Debugbar is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 726
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固