Giter Site home page Giter Site logo

wordpress-whoops's Introduction

WordPress Whoops Plugin

Over the past year or so I've been doing quite a bit of development with Laravel. But I still really like WordPress. There are a couple of libraries in Laravel that I really miss though when I'm working on WordPress plugins.

The first one is the outstanding filp/whoops library. It catches exceptions and makes it much easier to figure out what's going on.

The other is the dump() and dd() methods from the syfony/var-dumper package.

With this plugin activated, both of these libraries are loaded so you can use them while developing your plugins or themes. But they're only loaded when WP_DEBUG is true.

Probably not a plugin to use on a production server.

Setup

There really isn't any. Install it into a folder in /wp-content/plugins like any other plugin (I use /wp-content/plugins/wordpress-whoops) and activate. There aren't any settings. When activated, it's working. When deactivated, it's not. You do need to set WP_DEBUG to true.

Credits

99.9% of the credit for this belongs to Filipe Dobreira for Whoops and the authors of var-dumper. The only thing I did was wrap them in about 5 lines of PHP to make it work as a WordPress plugin.

wordpress-whoops's People

Contributors

ryannutt avatar

Watchers

 avatar  avatar

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.