pub fn sp1_debug_mode() -> bool {
    let value = std::env::var("SP1_DEBUG").unwrap_or_else(|_| "false".to_string());
    value == "1" || value.to_lowercase() == "true"
}
Returns whether the `SP1_DEBUG` environment variable is enabled or disabled.

This variable controls whether backtraces are attached to compiled circuit programs, as well
as whether cycle tracking is performed for circuit programs.

By default, the variable is disabled.
crates/core/machine/src/utils/mod.rs