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",
)