Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/orangewise/meteor-debug
- Owner: orangewise
- Created: 2014-12-16T10:36:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-03T15:28:42.000Z (about 9 years ago)
- Last Synced: 2024-04-20T10:22:39.666Z (7 months ago)
- Language: JavaScript
- Size: 676 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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 withdebug.disable()
## Example App
[Example Meteor App](/example/debug/)
### License
MIT