Got code that isn’t working for some reason?
This post is your best friend: Debugging your code!
(It’s buried in Chapter 6, so don’t feel too bad if you didn’t know about it til now)
A lot of the emails and comments I receive are from people looking for some help fixing their code. I always feed bad that I can’t help everyone out, though I try my best because I remember how difficult it was for me in the beginning while learning. Hope you guys understand.
So, for literally any issue you have with your code, System.debug() will tell you how to fix it.
At the very least it will point you in the right direction!
I should make that post title sexier since it’s easily the single most important post to help with any general code issues!
Here’s a comic I thought was funny since I like having a picture in all my posts:
That xkcd pic sums up most of my issues! : )