0

In batches I can't see debugs in logs and variables aren't changed inside batches but batches run and IDE shows 'Success'. What may be the reason of that? I checked in my organization and for 3 batches debug logs aren't visible and in one batch debug log is visible. (Debug logs were there)

2
  • Are all the batches directly implemented in your org or are they from a managed package?
    – Phil W
    Jun 15, 2020 at 15:49
  • They are directly implemented.
    – NickName43
    Jun 16, 2020 at 6:11

1 Answer 1

2

It depends on your TraceFlag settings at the time the batch runs, as well as if the maximum debug log size is reached. If your trace flags are not set right, or if the log is truncated because of size, you may not see the debug statements. You may want to use Check Points if you absolutely want to see the data at a given point in execution. The Developer Console can be used to set and view check point data, but you'll need to set your Apex Trace Flag to INFO (you can check this in Debug > Change Log Levels...).

You must log in to answer this question.

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