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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.