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

DebugModule #222

Open
2 of 19 tasks
thejmazz opened this issue Mar 24, 2017 · 3 comments
Open
2 of 19 tasks

DebugModule #222

thejmazz opened this issue Mar 24, 2017 · 3 comments

Comments

@thejmazz
Copy link
Contributor

thejmazz commented Mar 24, 2017

https://github.com/visionmedia/debug

it can be a help to have a trace of steps when debugging problems - in general console.log helps in these cases. it can also be really useful for bug reports.

with environment variables, can turn on/off debugging for certain debug statements

might be tricky, but can probably remove from "prod" build where no console debugging is necessary.

in general, might make it easier to maintain code. esp. since graphics can sometimes be a lot of trying different things out and leaving old settings commented.

Version:
  • v2.x.x
  • v1.x.x
Issue type:
  • Bug
  • Proposal/Enhancement
  • Question
  • Discussion

Tested on:
Desktop
  • Chrome
  • Chrome Canary
  • Chrome dev-channel
  • Firefox
  • Opera
  • Microsoft IE
  • Microsoft Edge
Android
  • Chrome
  • Firefox
  • Opera
IOS
  • Chrome
  • Firefox
  • Opera
@sasha240100
Copy link
Member

@thejmazz to handle errors correctly in node.js?

@sasha240100
Copy link
Member

I thought about replacing console.log. We can do that

@thejmazz
Copy link
Contributor Author

Not just for Node, but just b/c it allows toggling debug logs with environment variables. could have different logs turned off for different test cases for example, or if you need to debug a specific problem

@sasha240100 sasha240100 changed the title Consider using debug module instead of console.log DebugModule Apr 7, 2017
@sasha240100 sasha240100 added this to the v2.0.0-beta.9 milestone Apr 7, 2017
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

4 participants