This Meteor smart package provides support for the npm debug package.
meteor add robodo:meteor-debug
var d = debug('orangewise');
d('a debug message');
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
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()
MIT