I understand your query. To check system.debug you need to check your debug logs and there you should find it. For Batch class as we know there are methods-Start, execute and finish. If in case a method in the batch fails to execute you will not be able to view debugs of that method as well as debugs of the methods to be executed after that.
Hope you got this explanation. Please mark it as best answer if you find it helpful.
Yes we can write debug statements in batch apex. Those will be displayed when you run the batch class in 'Batch Apex' debug log.
Thanks.
Yes System.debug can work in Apex class.
For checking its results you can refer Logs from Developer console or from Debug Logs Under setup.
Thanks,
Jolly Birdi
Please mark it as best answer if you find it positive.
or
There may be issue reaching the maximun debug limit in your org .Clear some of the debug logs and check.
I understand your query. To check system.debug you need to check your debug logs and there you should find it.
For Batch class as we know there are methods-Start, execute and finish.
If in case a method in the batch fails to execute you will not be able to view debugs of that method as well as debugs of the methods to be executed after
that.
Hope you got this explanation. Please mark it as best answer if you find it helpful.
Thanks.
Ajay Dubedi