Summary
Keywords
Full Transcript
If you want to be successful in creating Solana smart contracts (or any software in general), you'll have to learn how to debug and test your code. In this video we will look at the basics of doing print statement debugging (sadly debuggers aren't supported yet) and how to write tests for your smart contract. Being able to write tests is extremely important, because not only does it protect you from introducing bugs to your code, but it allows you to quickly run your code without the need of having the front end implemented. 📙 Solana Playlist: https://www.youtube.com/watch?v=-AAtfPHEMbA&list=PL53JxaGwWUqCr3xm4qvqbgpJ4Xbs4lCs7 💰 Donations accepted (but optional): 2hYca42EE2kwmFZPV7M4skev1za7atWBh5ctzQWfsTD7 00:00 - Intro 01:01 - Logging Explaination 02:09 - Logging Code Example 04:52 - Testing Explaination 07:50 - Testing Code Example 19:10 - Conclusion Resources: Hello World Github Repo: https://github.com/solana-labs/example-helloworld Writing Tests: https://doc.rust-lang.org/book/ch11-01-writing-tests.html
