Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/icholy/snoop.js

A debugging tool that logs method invocations on an object.
https://github.com/icholy/snoop.js

Last synced: about 1 month ago
JSON representation

A debugging tool that logs method invocations on an object.

Awesome Lists containing this project

README

        

Snoop.js
========

> This is a debugging tool that logs method invocations on an object.
> The API was designed to be easy to use interactively with autocomplete.

[Bookmarklet](https://output.jsbin.com/fujeyomoyu/1)

![](http://i.imgur.com/nQv8ADL.jpg)

### Register an object to snoop on.

``` js
Snoop.register('$', $);

// turn on snooping for all methods
Snoop.register('$', $, true);
```

### Turn on snooping for `$.ajax`
``` js
Snoop.$.ajax.on();
```

### Turn off snooping for `$.ajax`
``` js
Snoop.$.ajax.off();
```

### Demo
![](http://i.imgur.com/GeYpexW.gif)