How do I interactively debug a Silverscript covenant on Kaspa?

Silverscript ships with sil-debug, a built-in CLI tool that lets you step through a covenant script and inspect it line by line before it ever touches the network. A CLI REPL (Read-Eval-Print Loop) is an interactive command-line session where you type commands and see results immediately. You launch sil-debug with `cargo run -p cli-debugger`, then pass it your script file, the function you want to test, and any constructor or call arguments. From there you can step through execution, examine variable values mid-run, and feed in controlled inputs to test how the covenant moves between states. For a developer new to Kaspa covenants, this means you can catch logic errors on your own machine in seconds rather than discovering them after an expensive testnet deploy.

Learn more ›