Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/orangewise/meteor-debug

Meteor wrapper for npm debug.
https://github.com/orangewise/meteor-debug

Last synced: 8 days ago
JSON representation

Meteor wrapper for npm debug.

Awesome Lists containing this project

README

        

# Debug for Meteor

This [Meteor](https://www.meteor.com/) smart package provides support for
the [npm debug](https://www.npmjs.com/package/debug) package.

## Installation

meteor add robodo:meteor-debug

## Usage, both server and client side

```javascript
var d = debug('orangewise');
d('a debug message');
```

## Server side debug messages

The DEBUG environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:

# log messages in the orangewise namespace
DEBUG=orangewise* meteor

# log all messages
DEBUG=* meteor

## Client side debug messages

Debug works in the browser as well.

Type this in the console and refresh the page to log messages in the orangewise namespace:

debug.enable('orangewise*')

This will remain until you disable with

debug.disable()

## Example App

[Example Meteor App](/example/debug/)

### License

MIT