function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
James George 717James George 717 

Debugging Batch Apex Using Apex Replay Debugger and log file to be used

Hi Friends,
While debugging the apex batch class using the Replay Debugger, if multiple log files are present for a single batch class which one should select for debugging purpose.

Please see the screenshot.User-added image

Thanks
James George
Best Answer chosen by James George 717
ShirishaShirisha (Salesforce Developers) 
Hi James,

Greetings!

You need to check all the logs generated while executing the batch class as the logs contains all the transactions which should explain the flow of execution.

Also,as per the screenshot provided above I can see that the second one from above has most execution of code compare to the remaining logs according to the size. 

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri

All Answers

ShirishaShirisha (Salesforce Developers) 
Hi James,

Greetings!

You need to check all the logs generated while executing the batch class as the logs contains all the transactions which should explain the flow of execution.

Also,as per the screenshot provided above I can see that the second one from above has most execution of code compare to the remaining logs according to the size. 

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
This was selected as the best answer
ken berryken berry
Sweet Peppers Deli is asking you to participate in Sweet Peppers Deli Guest Satisfaction Survey and leave your feedback that helps them to grow.
Sweet peppers deli Survey has great aims to improve customer satisfaction collecting honest customer feedback.