Salesforce coding lessons for the 99%
Finally, Apex tutorials for point-and-click admins! Written by a self-taught Google engineer.
  • Beginner Tutorials
    • Apex
    • Certifications
    • Career Info
    • Technical Architect
    • Visualforce
    • Videos
  • Apex Academy
  • Success Stories
  • About Me
  • Misc
    • Mailbag
    • Challenges
    • Links
    • Login to my Org
Follow @dvdkliuor SUBSCRIBE!

How to fix any broken code

August 15, 2014

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:

1 Comment
Virginia
August 18, 2014 @ 5:03 am

That xkcd pic sums up most of my issues! : )

Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


*

*

Theme: Simple Style by Fimply