Coder Social home page Coder Social logo

error's Introduction

#错误调试

开发过程中使用调试模式可以将所遇到的所有问题呈现给开发者,加快解决错误的速度。 框架错误处理非常高效全面,只需要开启调试模式剩下的就交给框架自动完成。

组件依赖 Log日志组件 请参考 GitHub文档 先行配置Log组件。 [TOC]

####安装 使用 composer 命令进行安装或下载源代码使用。

composer require houdunwang/error

####配置

Config::set('log.dir', 'storage/log');
//开启时直接显示错误信息
Config::set('app.debug', true);
$config = [
    //Notice类型错误显示
    'show_notice' => true,
    //错误提示页面
    'bug'         => 'resource/bug.php',
];
Config::set('error', $config);

####启动

\houdunwang\error\Error::bootstrap();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.