Skip to content

zhouzhuojie/meteor-deb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meteor-deb Build Status

Deb.js for Meteor, a very userful tool for debugging in the browser. If you mark the function with deb(), and everytime you run it, it will log all the details including arguments, output and stacktraces of the function.

Install

meteor add mrt:deb

Basic usage

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

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

For coffeescript users, there is a global function deb and debc.

calculateSomething = deb (cb) ->
  # ...

Example

Template.hello.events({
    'click input': function () {
        console.log("You pressed the button");
    }.deb()
});

Credits

Thanks to @krasimir for the great debugging tool. Official Documentation for Deb.js: https://github.com/krasimir/deb.js

LICENSE

MIT

About

Deb.js for Meteor

Resources

Stars

Watchers

Forks

Packages

No packages published