0

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 enter image description here

2
  • 1
    Each 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 those
    – kurunve
    Commented Dec 20, 2021 at 8:16
  • 1
    I 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
    Commented Dec 20, 2021 at 10:29

1 Answer 1

0

Because batch executes in another transaction. To get result of Batch job use soql to AsyncApexJob

1
  • 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
    Commented Dec 21, 2021 at 10:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .