I am trying to run a batch class from anonymous window. In the debug logs i am not getting the statement executes. Only method entry/exit is showing. Debug level for apex is set to finest. It keeps happening like this. Any inputs will be helpful 
- 1Each single statement of execute method, as well as start and finish is in it's own execution context, and ends up in separate log. Please check thosekurunve– kurunve2021-12-20 08:16:00 +00:00Commented Dec 20, 2021 at 8:16
- 1I checked all the logs. This log is only covering the logic and the classes that i want to debug. Its not only happening in batch class but in general.Swap31– Swap312021-12-20 10:29:13 +00:00Commented Dec 20, 2021 at 10:29
Add a comment |
1 Answer
Because batch executes in another transaction. To get result of Batch job use soql to AsyncApexJob
- checked all the logs. This log is only covering the logic and the classes that i want to debug. Its not only happening in batch class but in general.Swap31– Swap312021-12-21 10:19:23 +00:00Commented Dec 21, 2021 at 10:19