I am implementing benchmark to calculate weight in my pallet and need to print some data I was trying to use if_std println! but got nothing. What the best way to make printouts for debugging benchmarks.rs?
benchmarks! {
create_xyz {
let index = <NextXYZIndex<T>>::get();
println!("index:{}", index);
let caller: T::AccountId = whitelisted_caller();
}: _(RawOrigin::Signed(caller), index)
}
benchmarks!
closure?