-
Notifications
You must be signed in to change notification settings - Fork 85
How To debug a Plugin on a device
#How To debug a Plugin on a device
Finding bugs on devices can be daunting. With the different platforms, version and devices finding an illusive bug can give you gray hair.
The BuildFire SDK gives you a very simple way to expose your console logs on the device.
##Logging
The good news is, you dont need to do anything different than what you already do when logging events to the console with console.log
, console.debug
, console.warn
and console.error
The BuildFire SDK will collect these logs and expose them when ready
##Displaying the logs Load an instance of your plugin in app then tap/click the Title 5 times
Then the logs will appear.
Use this namespace to access methods and properties to change the behavior manually
is a property that defines how many logs to retain. Defaults to 500
buildfire.logger.logMaxLength = 1000;
is a method that allows you to manually clear the previous logs
is a method that allows you to display the logs without the need to click on the title 5 times
is a method that allows you to hide the log display
To hot load changes onto your device see https://github.com/BuildFire/sdk/wiki/App-Developer-Mode