nella / tracy-debug-info
该软件包已被废弃,不再维护。未建议替代包。
Tracy 蓝屏面板用于 Exception::__debugInfo
v1.0.0
2015-11-29 03:05 UTC
Requires
- php: ~5.5|~7.0
- tracy/tracy: ~2.3.0
Requires (Dev)
- jakub-onderka/php-console-highlighter: ~0.3.2
- jakub-onderka/php-parallel-lint: ~0.9.0
- nella/coding-standard: ~2.2.1
- nette/tester: ~1.6.1
This package is auto-updated.
Last update: 2020-12-06 16:21:57 UTC
README
原始蓝屏
更好的(带有面板)蓝屏
要求
- Tracy >=2.3.0(2.3.x支持将于2017年1月31日移除)
- PHP >=5.5.0(5.5.x支持将于2016年7月10日移除)
安装
composer require nella/tracy-debug-info
使用
\Nella\Tracy\DebugInfoPanel::register(\Tracy\Debugger::getBlueScreen());
您的异常必须实现 Nella\Tracy\DebugInfoException
接口。存在一个辅助特质 Nella\Tracy\DebugInfoExceptionTrait
,其中实现了 __debugInfo
方法。
class YourException extends \Exception implements \Nella\Tracy\DebugInfoException { use \Nella\Tracy\DebugInfoExceptionTrait; }
许可
Tracy 蓝屏面板用于 Exception::__debugInfo 的许可证为 MIT 许可证 - 请参阅 LICENSE 文件以获取详细信息