What does debug log do?
Use debug logs to track events that occur in your org. Debug logs are generated when you have active user-based trace flags, when you run Apex tests, and when executed code or API requests include debugging parameters or headers.The Debug.log file can record database operations, system processes, and errors that occur when executing a transaction or running unit tests. To …