CakePHP DebugKit

CakePHP 应用程序的调试工具条。(Debug Toolbar for CakePHP applications.)

Github stars Tracking Chart

CakePHP DebugKit

DebugKit 为 CakePHP 应用提供了一个调试工具栏和增强的调试工具。它可以让你快速查看应用程序的配置数据、日志消息、SQL查询和定时数据。

警告:DebugKit 仅用于单用户本地开发环境。您应该避免在共享开发环境、暂存环境或任何需要隐藏配置数据和环境变量的环境中使用 DebugKit。 警告:DebugKit 仅用于单用户本地开发环境。

要求

SQLite(pdo_sqlite)或其他 CakePHP 可以对话的数据库驱动。默认情况下 DebugKit 会使用 SQLite,如果你需要使用不同的数据库请参考下面链接的文档中的数据库配置部分。

详情和旧版本请看 version map

安装方法

从你的 CakePHP 项目的 ROOT 目录(composer.json 文件所在的位置)安装插件与 Composer

php composer.phar require --dev cakephp/debug_kit:"^4.0"

加载插件

// src/Application.php
$this->addPlugin('DebugKit');

在 config/app.php 中设置 'debug' => true。

报告问题

如果你在使用DebugKit时遇到问题,请在 GitHub 上开一个问题。

贡献

如果你想为 DebugKit 做贡献,请查看计划中的功能 路线图。你可以对项目进行 fork,添加功能,并发送 拉取请求 或开放 问题

文档

DebugKit 的文档可以在 CakePHP 文档中找到。


Overview

Name With Ownercakephp/debug_kit
Primary LanguagePHP
Program languagePHP (Language Count: 5)
PlatformBSD, Linux, Mac, Solaris, Windows
License:Other
Release Count160
Last Release Name5.0.6 (Posted on )
First Release Name1.0 (Posted on 2009-01-15 18:35:51)
Created At2009-12-12 03:24:12
Pushed At2024-05-03 18:15:22
Last Commit At
Stargazers Count854
Watchers Count77
Fork Count573
Commits Count2.6k
Has Issues Enabled
Issues Count343
Issue Open Count7
Pull Requests Count572
Pull Requests Open Count1
Pull Requests Close Count84
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

CakePHP DebugKit

Build Status
Coverage Status
License
Total Downloads

DebugKit provides a debugging toolbar and enhanced debugging tools for CakePHP
applications. It lets you quickly see configuration data, log messages, SQL
queries, and timing data for your application.

:warning: DebugKit is only intended for use in single-user local development
environments. You should avoid using DebugKit in shared development
environments, staging environments, or any environment where you need to keep
configuration data and environment variables hidden. :warning:

Requirements

The master branch has the following requirements:

  • SQLite (pdo_sqlite) or another database driver that CakePHP can talk to. By
    default DebugKit will use SQLite, if you need to use a different database see
    the Database Configuration section below.

DebugKit for CakePHP 2.x

If you want DebugKit for your 2.x application, you can use the latest 2.2.y tag or the 2.2 branch.

Installation

  • Install the plugin with Composer from your CakePHP Project's ROOT directory (where the composer.json file is located)
php composer.phar require --dev cakephp/debug_kit:"~3.0"
// src/Application.php
$this->addPlugin('DebugKit');
  • Set 'debug' => true, in config/app.php.

Reporting Issues

If you have a problem with DebugKit please open an issue on GitHub.

Contributing

If you'd like to contribute to DebugKit, check out the
roadmap for any
planned features. You can fork
the project, add features, and send pull
requests
or open
issues.

Versions

DebugKit has several releases, each compatible with different releases of
CakePHP. Use the appropriate version by downloading a tag, or checking out the
correct branch.

  • 1.0, 1.1, 1.2 are compatible with CakePHP 1.2.x. These releases of DebugKit
    will not work with CakePHP 1.3. You can also use the 1.2-branch for the mos
    recent updates and bugfixes.
  • 1.3.0 is compatible with CakePHP 1.3.x only. It will not work with CakePHP
    1.2. You can also use the 1.3 branch to get the most recent updates and
    bugfixes.
  • 2.2.x are compatible with CakePHP 2.2.0 and greater. It is a necessary
    upgrade for people using CakePHP 2.4 as the naming conventions around loggers
    changed in that release. 2.2.x is not actively being developed.
  • 3.x is compatible with CakePHP 3.x and is still under active development.

Documentation

Documentation for DebugKit can be found in the
CakePHP documentation.

To the top