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
Jump Crypto: The State Of Firedancer | Michael McGee
Solana Changelog - CLI Explorer, Priority Fees for Program Deployment, and Dynamic Block Limits
Solana Changelog - December 20 - Top Picks of 2023
Scale or Die 2025: No-strings-attached programs w/ Pinocchio
Solana Changelog - Apr 2 - CLI Explorer, Priority Fees When Deploying, and More
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 - December 13, 2022 - BigTable Fixes, Versioned Tx Program Testing, and OpenBook!
A Blockchain Dev's Guide to Leaving Cities w/ Austin Adams (Anagram)
Solana Changelog - January 10, 2024: Deprecating Executable Flag, Rust Upgrade, and SPL Token Enhancements
Building a Solana Test Validator on Steroids w/ Thorsten Lorenz (Luzid) - Solfate Podcast #50
Latest news
Pay.sh Adds MCP Elicitations, Requiring Human Approval Before AI Agents Spend USDC
TinyHumans AI Launches Tiny Place, an Agent-to-Agent Social Economy on Solana
Solflare Adds Card Borrows, Reclaim SOL, and Titan Swaps in June Shipping Update
LiteSVM 0.13.0 Adds GDB Debugger Support for Solana Program Testing
Kazakhstan Stock Exchange Lists BlackRock Ethereum ETF and Volatility Shares Solana ETF Under Regulatory Sandbox
Triton One's Cloudbreak Cuts getProgramAccounts Latency 99% With Postgres-Indexed Account Storage
Phoenix Trade Hits $8.8M Open Interest All-Time High on DeFiLlama, Up ~5,000x in One Month
Morgan Stanley Amends Solana and Ethereum ETF Filings to Add Staking and Disclose 0.14% Fee
Solana Surpasses Ethereum to Become the #1 Blockchain by RWA Holder Count
Kraken Embeds On-Chain Solana DEX Trading Directly in Its App, Unlocking 2,500+ Solana Tokens
Solana Token Markets
