-
Notifications
You must be signed in to change notification settings - Fork 941
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
Requires hack to work with React Native remote debugging #286
Comments
How do you set the filter since there is no LocalStorage? |
@inetfuture manually set it, like: if(!window.localStorage) window.localStorage = {};
window.localStorage.debug = '*'; |
This should be fixed. Closing |
Unfortunately I was not able to get |
+1 |
It looks like the issue for me was that namespaces were not enabled properly. Ended up wrapping
Probably not ideal yet, but it works for us. |
Because the
document
global is not defined in react native, the following line of code throws an error when using the module:https://github.com/visionmedia/debug/blob/master/dist/debug.js#L369
The error looks like this in react native:
https://www.dropbox.com/s/kt12zlnpvtdn3pz/Screenshot%202016-06-03%2022.06.20.png?dl=0
My current workaround includes defining the following line before initializing
debug
:Setting the value to true allows it to use colorful output when using Chrome for remote debugging.
Maybe there's a way to detect react native environment to avoid the hack above?
The text was updated successfully, but these errors were encountered: