I want to debug my program in Solana Playground. I am using the print function to get logs. The containing function is running but not producing any logs. Attaching a screenshot below.
1 Answer
Try msg!("asdf");
or msg!("some var: {:?}", some_var)
to print a variable to the logs.
-
1Additionally to see the logs in Playground, go to settings (gear in bottom left) and turn on "Show transaction details"– Callum MCommented Mar 7, 2023 at 12:12