Code Monkey home page Code Monkey logo

think-whoops's Introduction

think-whoops

让Whoops接管ThinkPHP6异常, Whoops提供stackbased错误捕获及超美观的错误

Latest Stable Version Total Downloads License

安装

$ composer require xiaodi/think-whoops

开启/关闭接管

开启 APP_DEBUG 才正常接管, 关闭默认转交ThinkPHP处理 config/whoops.php

 <?php
 
 return [
  'enable' = true
 ];

打开编辑器

帮助您从异常堆栈跟踪中打开代码编辑器

支持编辑器 sublime,textmate,emacs,macvim,phpstorm,idea,vscode,atom,espresso

config/whoops.php

 <?php
 
 return [
   'editor' = 'vscode'
 ];

效果

img

think-whoops's People

Contributors

edenleung avatar isszz avatar itxq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

think-whoops's Issues

ThinkPHP6多应用模式

请问,在ExceptionHandle自定义异常之后,app_debug和enable是打开状态,return parent::render($request,$e); 是原生的异常页面,单应用模式下是正常的,应该如何在多应用模式下自行调整继续使用呢,我看不太懂源码是怎样运转的

异步请求 响应是空白的

异步请求时,响应界面是空白的
微信截图_20201209101109
微信截图_20201209101000
在输出前打印了一下dump(11);
微信截图_20201209101500
发现可以打印11,但是打印了4次,json信息也没展示出来
微信截图_20201209102655

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.