LiteSVM 0.13.0 Adds GDB Debugger Support for Solana Program Testing
LiteSVM 0.13.0 ships a GDB remote debugger stub for in-process Solana program testing, along with Agave 4.0 alignment and SPL Token 2022 v11.0.0 support.
LiteSVM, the in-process Solana Virtual Machine library for Rust unit testing, released version 0.13.0 on June 19 with its most significant developer experience addition to date: a GDB remote debugger stub that lets developers attach a standard debugger to a running Solana program during a test run.
LiteSVM: In-Process Solana Testing Without a Validator
LiteSVM is a Rust crate that runs the full Solana runtime (account model, compute budget, syscalls, cross-program invocations) inside a test process, without spinning up a validator node. The library is designed as a faster, lighter alternative to solana-program-test and solana-test-validator. Because it compiles and executes in-process, test cycles that would take seconds against a local validator typically complete in milliseconds.
The library is maintained by Aursen, who announced the 0.13.0 release on June 19.
GDB Remote Stub for SBPF Program Debugging
Until now, debugging a misbehaving Solana program in a unit test meant reading msg!() log output, a workflow that collapses to guesswork when the bug is in a deep call path or surfaces only under specific account state. Native debugger support did not exist for in-process SVM testing.
Version 0.13.0 adds an SBPF (Solana Bytecode Format Program) debugger backed by a GDB remote stub. When the feature is enabled, LiteSVM opens a TCP port (configured via the SBF_DEBUG_PORT environment variable) and speaks the GDB remote serial protocol. Developers can connect any GDB-compatible client, set breakpoints, inspect registers, step through instructions, and resume execution across cross-program invocation boundaries.
A trace filtering system, built on a nom-based expression parser, controls which invocations trigger the debugger and which trace events are collected. Filters can match by transaction signature (txsig) or program ID, with support for ==, !=, ||, && operators and parenthesized grouping. This makes it practical to isolate a single program or transaction in a test suite that exercises many.
The implementation also writes a program_ids.map file that maps program addresses to ELF SHA-256 hashes, using the same format as the mollusk testing framework. This file enables symbol resolution in a connected debugger.
Agave 4.0 Alignment Keeps Tests Current with Upcoming Validator Changes
The release bumps LiteSVM's internal runtime to track Agave 4.0, the next major version of the Anza validator client. The update (PR #322) pulls in the updated mainnet feature set and corrects outdated feature activation dates that had accumulated in prior releases. A maintenance script added in PR #357 automates future mainnet feature syncs, reducing the manual work needed to keep LiteSVM current with network upgrades.
Keeping test environments aligned with the validator client the network runs means that programs passing LiteSVM tests are more likely to behave correctly on mainnet after Agave 4.0 activates.
SPL Token 2022 v11.0.0 and Stake Program Fixes
PR #358 updates LiteSVM's bundled Token-2022 program to version 11.0.0. Programs that use Token-2022 extensions can now test against the current program version without workarounds.
The release also fixes stake program panics that occurred when testing against mainnet-forked state (PR #346), which required updating the bundled stake ELF from v1.0.1 to v5.0.0 to handle the current V4 vote account format.
LiteSVM 0.13.0 is available on crates.io. The Node.js wrapper (node-litesvm with Kit) is at version 1.2.0, released alongside the Rust crate.
Comments
Please login to leave a comment.
Contents
Related Content
Solana Changelog - January 31, 2023 - Geyser Improvements, Program-Test, and Bokken
Solana Changelog - January 31, 2023 - Geyser Improvements, Program-Test, and Bokken
Solana Changelog - December 20 - Top Picks of 2023
Solana Changelog - CLI Explorer, Priority Fees for Program Deployment, and Dynamic Block Limits
Solana Changelog - December 20 - Top Picks of 2023
Jump Crypto: The State Of Firedancer | Michael McGee
Scale or Die 2025: No-strings-attached programs w/ Pinocchio
Solana Changelog - Apr 2 - CLI Explorer, Priority Fees When Deploying, and More
Solana Changelog - December 13, 2022 - BigTable Fixes, Versioned Tx Program Testing, and OpenBook!
The Brian Armstrong Podcast - Coinbase CEO on Entrepreneurship, Crypto, and Company Culture
Solana Changelog - December 13, 2022 - BigTable Fixes, Versioned Tx Program Testing, and OpenBook!
Breakpoint 2025: Security Block: Certora (Pamina Georgiev)
Solana Changelog - January 10, 2024: Deprecating Executable Flag, Rust Upgrade, and SPL Token Enhancements
A Blockchain Dev's Guide to Leaving Cities w/ Austin Adams (Anagram)
Building a Solana Test Validator on Steroids w/ Thorsten Lorenz (Luzid) - Solfate Podcast #50
Latest news
Solana Logged $10 Billion in Tokenized Stock Volume in June, Capturing 95% of On-Chain Equity Trading
Solana Policy Institute Files CFTC Letter Proposing Wallet Software Rules, 24/7 Market Standards, and Blockchain Recordkeeping
SK Hynix's Record Nasdaq Listing Lands on Solana on Day One, Tokenized by xStocks, Backpack Securities, and Ondo
Solana Mainnet Reaches Epoch 1000 After More Than Six Years of Continuous Operation
DeFi Development Corp. Narrows Focus to SOL Per Share After Volatile June
World Prediction Market Migrates From Solana to Robinhood Chain as Raydium, Phantom, and Jito Reaffirm
Solstice Finance's SLX Token Gets Canonical Solana Listing via Sunrise, Trades Live on Jupiter
Jupiter Opens Community Preview of Spot Redesign at edge.jup.ag/spot
Raydium Reports xStocks Trading Volume Tripled in Q2 2026, Reaching $1.63 Billion
U.S. Solana ETFs Log Positive Inflows Every July Trading Day as TSOL Moves to FTSE Benchmark
Solana Token Markets
