2

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.enter image description here

1 Answer 1

2

Try msg!("asdf"); or msg!("some var: {:?}", some_var) to print a variable to the logs.

1
  • 1
    Additionally to see the logs in Playground, go to settings (gear in bottom left) and turn on "Show transaction details"
    – Callum M
    Commented Mar 7, 2023 at 12:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.