enmanuelar/exception-catcher

ExceptionCatcher 提供了处理异常和调试的函数,使操作更简单

v0.1.0 2020-10-13 02:17 UTC

This package is auto-updated.

Last update: 2024-09-13 12:15:58 UTC


README

快速捕获异常并调试。此包可用于简化调试并美化和打印异常,以便您快速找到问题的解决方案。

安装

安装通过 composer 完成

composer require enmanuelar/exception-catcher

基本示例

您只需要在 catch 块中实例化一个新的 ExceptionCatcher 并调用您需要的任何函数。

try {
	...
} catch (Exception $exception) {
	$catcher = new ExceptionCatcher();
	$catcher->printExceptionDetails($exception);
}