Chapter 2: Debugging Apex
In this chapter, I want to discuss the process of debugging your Apex code and finding errors. In the previous chapter, we saw how we can prevent common Apex mistakes, but there will still be instances and examples where we have errors or issues that we will need to debug within our solution. The focus here is on the process of debugging and using the tools provided to their maximum, rather than debugging a particular problem itself. Code bugs come in all shapes and sizes, and if the Salesforce Developer Community forums and Salesforce StackExchange are any indication, a never-ending book of fixing particular errors could be written. By focusing on improving and streamlining your debugging process, you should be able to find and resolve any issues more rapidly in the future.
We will cover the following topics in this chapter:
- An overview of debugging on Salesforce
- Using log levels when generating debug logs
- The use of Salesforce Developer...