achertovsky/yii2-debug-cli

此包已被废弃,不再维护。未建议替代包。

打开 CLI 脚本以实现 /debug 访问

安装次数: 12,311

依赖: 0

建议者: 0

安全: 0

星标: 6

关注者: 2

分支: 3

开放问题: 2

类型:yii2-extension

dev-master 2021-07-07 13:37 UTC

This package is auto-updated.

Last update: 2022-06-07 15:29:11 UTC


README

描述

模块,用于在 /debug 中显示 CLI 脚本(如果需要的话)

希望它对您有用。

安装

安装此扩展的首选方式是通过 composer。

{
	"require": {
	    "achertovsky/yii2-debug-cli": "@dev"
    }
}

或者

	composer require achertovsky/yii2-debug-cli "@dev"

使用方法

要开始使用它,请将其添加到您的模块部分

例如

'debug' => [
    'class' => 'achertovsky\debug\Module',
    'logTarget' => 'achertovsky\debug\LogTarget',
],

在高级模板 personally me 中,我在 common/config/main.php 中使用它

在基本模板中,我会(从未)将其同时放入 config/web.php 和 config/console.php(等待反馈)

错误中心的用法

  1. 迁移 ./yii migrate/up -p vendor/achertovsky/yii2-debug-cli/migrations
  2. 为了覆盖所有入口点,建议在主配置中定义调度器
  • 在高级模板 personally me 中,我在 common/config/main.php 中使用它
  • 在基本模板中,我会(从未)将其同时放入 config/web.php 和 config/console.php(等待反馈)
'components' => [
    'log' => [
        'class' => '\achertovsky\debug\log\Dispatcher',
        //...
    ],
    //...
]
  1. 使用它。/debug/error-hub