Issue #296 Add debugging

https://github.com/couchbase/couchbase-lite-android/issues/296