/tealdbg_launcher

Utility to start the TEAL debugger from Rust

Primary LanguageRustMIT LicenseMIT

tealdbg_launcher

Build

Start the TEAL debugger from Rust.

Cargo.toml:

tealdbg = { git = "https://github.com/ivanschuetz/tealdbg_launcher" }

Insert this where you want to debug smart contract calls:

tealdbg::launch_default(
    &[my_tx1, my_tx2],
    "approval.teal",
)

To override defaults:

tealdbg::launch(
    Config {
        mode: tealdbg::Mode::Sandbox {
            command: "<path>/sandbox",
        }
        ..Config::default()
    },
    &[my_tx1, my_tx2],
    "approval.teal",
)