Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for debug packages #48

Open
yoshuawuyts opened this issue Jan 14, 2017 · 4 comments
Open

Add support for debug packages #48

yoshuawuyts opened this issue Jan 14, 2017 · 4 comments

Comments

@yoshuawuyts
Copy link
Collaborator

It'd be cool if we could add support for some debug packages to make debugging services easier:

cc/ @lrlna thoughts? would this be overkill or like good to include?

@lrlna
Copy link
Member

lrlna commented Jan 14, 2017

a couple of options for the API:

merry.debug(opts), which would take in an obj that's a debugging service, e.g. :

var trace = require('block-trace')
var merry = require('merry')()

merry.debug({debug: trace})

orrrr, maybe, and this might be out there, have it as part of merry.env ? I am not sure if envobj is going to like that v much but still

@lrlna
Copy link
Member

lrlna commented Jan 14, 2017

ahhhh no, do the whole app.use(opts) thing here actually. having a separate method might be a bit of an overkill

var trace = require('block-trace')
var merry = require('merry')

var app = merry()
app.use(trace())

@yoshuawuyts
Copy link
Collaborator Author

yoshuawuyts commented Jan 14, 2017 via email

@lrlna
Copy link
Member

lrlna commented Jan 14, 2017

yep that's probably the best solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants