debugging

Installation
SKILL.md

Debugging Guide

Bytecode Comparison

When Turso and SQLite give different results, run EXPLAIN on both:

sqlite3 :memory: "EXPLAIN SELECT 1 + 1;"
cargo run --bin tursodb :memory: "EXPLAIN SELECT 1 + 1;"

Different bytecode means a bug in code generation (core/translate/). Same bytecode with different results means a bug in the VM or storage layer.

Logging

tursodb logs with tracing. It reads RUST_LOG (default level: warn) and writes to stderr, or to a file with -t <file> (--tracing-output).

Installs
1.3K
GitHub Stars
25.3K
First Seen
Jan 28, 2026