redcatphp/debug 问题修复 & 功能扩展

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

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

redcatphp/debug

最新稳定版本:v1.7.3

Composer 安装命令:

composer require --dev redcatphp/debug

包简介

Debug - Common vars dump helpers and error handler for debugging purpose

README 文档

README

No longer actively maintained. I work now with NodeJS and I recommand you to take a look at di-ninja

Debug

Error Handler

A simple error handler for direct debugging purpose via html output and targeting source code context of errors. It handle all errors including fatal errors and exceptions. It will start automatically in RedCat when your config set dev.php to true. `

$errorHandler = new RedCat\Debug\ErrorHandler;
$errorHandler->handle();

Var Debug

This is a lighter and customizable alternative to native var_dump with syntax highlighting in html mode and showing the file and line call of debug function by dint of backtrace. ```php use Debug\Vars;

//direct output
Vars::debug($variable,$strlen=1000,$width=25,$depth=10); // text output
Vars::debug_html($variable,$strlen=1000,$width=25,$depth=10); // html output
Vars::debugs($variable1,$variabe2 /* , ... */); // html output
Vars::dbugs($variable1,$variabe2 /* , ... */); // text output

//output the result manualy
echo Vars::debug_html_return($variable,$strlen=1000,$width=25);
echo Vars::debug_return($variable,$strlen=1000,$width=25);

There is some procedural function which call static function to Vars class. The procedural functions file will be included automatically when ErrorHandler launch handle.

dbug($var); //equivalent of Var::debug($var);
debug($var); //equivalent of Var::debug(_html$var);
dbugs($var,$var2); //equivalent of Var::dbugs($var,$var2);
debugs($var,$var2); //equivalent of Var::debugs($var,$var2);

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2015-11-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固