anchor-lldb

Crates.ioanchor-lldb
lib.rsanchor-lldb
version0.2.1
created_at2025-06-25 14:34:56.784242+00
updated_at2025-06-26 12:10:48.5366+00
descriptionA CLI tool to generate a standalone Rust crate to simulate and debug program instructions writte on Anchor Solana framework. Creates a binary executable that can be debugged with lldb.
homepage
repositoryhttps://github.com/ERoydev/anchor-lldb
max_upload_size
id1725980
size48,327
Emil Roydev (ERoydev)

documentation

README

Anchor Debug Wrapper Generator

  • Generates a standalone Rust crate that lets you simulate and debug program instructions without deploying to Solana.

It scaffolds a standalone Rust crate with:

  • main.rs: runs all instructions with mock accounts and test data
  • mock.rs: mocks for system program, signers, and PDAs
  • Cargo.toml: links to your Anchor crate via local path + package name

Why?

  • Easily simulate and debug instructions locally without deploying to Solana.
  • Quickly iterate on instruction logic, argument setup, and PDA derivation.
  • No need for a local validator or on-chain deployment.
  • Get the package name from your_project_name/programs/your_project_name/Cargo.toml

Usage:

anchor-lldb generate --package=<your_package_name_here> 
Commit count: 0

cargo fmt