Debug Logging
You can print out internal communication messages between provider and OneKey wallet. Use this feature during development. Review logs before sharing them, as they may contain account or request data.
Logging messages have been grouped by jsBridge, providerBase and extInjected. You can toggle them on or off as shown below; changes take effect after a page reload:
// turn on all groups logging
localStorage.setItem('$$ONEKEY_DEBUG_LOGGER', '*');
// turn off all groups logging
localStorage.setItem('$$ONEKEY_DEBUG_LOGGER', '');
// turn on `jsBridge` group only
localStorage.setItem('$$ONEKEY_DEBUG_LOGGER', 'jsBridge');
// turn on both `jsBridge` and `providerBase` group
localStorage.setItem('$$ONEKEY_DEBUG_LOGGER', 'jsBridge,providerBase');
Last updated on