Debugging In Salesforce - Part II

Hope you have read Part I of this series !! In this part we'll understand how to read log file. Once you capture a log file and open it, you can get all information from first line itself. First line of log gives information about the log categories and levels and Second line gives User Information EXECUTION_STARTED marks the start of transaction. CODE_UNIT_STARTED and CODE_UNIIT_FINISHED marks start and end of particular code unit which was executed during transaction. Using this you can check what has happened when particular unit of code executed. Units of code include, but are not limited to, the following: Triggers Workflow invocations and time-based workflow Validation rules Approval processes Apex lead convert @future method invocations Web service invocations executeAnonymous calls Visualforce property accesses on Apex controllers Visualforce actions on Apex controllers Execution of the batch Apex start and finish methods, and each ex...