Summary of common issues, troubleshooting tools and pointers.
SqliteException: Could not load extension
or similarsqflite 2.2.6
, but sqflite 2.3.3+1
does not throw the same exception.
console.debug
if verbose logging is enabled. This should log which PUT
/PATCH
/DELETE
operations have been applied from the server.
find ~/Library/Developer/CoreSimulator/Devices -name "mydb.sqlite"
const logger = createBaseLogger()
and enable with logger.useDefaults()
and set level with logger.setLevel(LogLevel.DEBUG)
. For the Web SDK, you can also enable the debugMode
flag to log SQL queries on Chrome’s Performance timeline.
Warnings
in release and Verbose
in debug mode.
DefaultLogger
and custom loggers implementing LoggerProtocol
. Supports severity levels: .debug
, .info
, .warn
, and .error
.
ILogger
interface. Configure with LoggerFactory
to enable console logging and set minimum log level.
debugMode
flag in the Web SDK logs all SQL queries on the Performance timeline in Chrome’s Developer Tools (after recording). This can help identify slow-running queries.
powersync-sqlite-core
.PowerSyncDatabse
: