Giter Club home page Giter Club logo

deb.js's Introduction

deb.js

~1.5K minimalistic JavaScript library for debugging in the browser

  • works on functional level
  • groups your console.log statements and place them in a proper context
  • displays stack traces, passed arguments and execution time

Usage

Add deb.min.js at the top of your page. Before every other script file.

<script src="deb.min.js"></script>

Add .deb() After the definition of your functions.

var calculateSomething = function(cb) {
	// ...
}.deb();

Open your console. You should see something like that:

deb.js

Use .debc() to collapse the output.

Deb.js as Chrome extension

Deb.js in Google Web Store

There is extension for Chrome that injects deb.min.js into your page. All you have to do is to install the extension from here and click the icon in the upper right corner.

Once you do that the extension will inject the file before your page's content and you will be able to use .deb() or debc() methods.

deb.js

Deb.js is availble in Bower too

To install the library via Bower just run:

bower install deb.js

The file that you probably want to use is /bower_components/deb.js/build/deb.min.js.

Articles

Preview

Here is an animated gif that demonstrates how Deb.js outputs information about the executed function.

deb.js

Building

  1. npm install
  2. npm run build

Contributers

deb.js's People

Contributors

anton-semenchenko avatar kshirish avatar thecodedestroyer avatar vzwick 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.