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 debugging guides #3416

Closed
chasenlehara opened this issue Jul 10, 2017 · 3 comments
Closed

Add debugging guides #3416

chasenlehara opened this issue Jul 10, 2017 · 3 comments

Comments

@chasenlehara
Copy link
Member

Opening this issue (maybe it’ll be an epic?) for us to add guides on how to debug CanJS applications. We might create one epic guide (under Guides), although I think it would make sense for each module to have its own debugging guide (similar to how can-set has this Solving Common Issues section).

@chasenlehara
Copy link
Member Author

@frank-dspeed
Copy link
Contributor

@chasenlehara i am for adding npm module debug to all can libs like define on all places and then we can debug all stuff well i did that for can define direktspeed/can-define-debug@f390eb0

it helped me a lot https://www.npmjs.com/package/debug

i use it also backend side for all projects i did forks of every can package but don't published them and can this way debug them all

a commun method that i use then is i add to the init of my app that if env DEBUG exists in the node start line then i add directly in the init the settings to the localstorage in browser

because you need to filter out very verbose things like babel :) they all are using that module and if you do something like DEBUG=* you get with steal and babel a lot of fun :)

so DEBUG=,-babe is most importent if you debug whole projects if you debug only a single component turn on debug for babel is also cool

@chasenlehara
Copy link
Member Author

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