function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ethan huntethan hunt 


Hi All,

By using system.debug in catch block reduces the performance of system. Is using system.debug is best practice in try catch while doing dml operations

Kindly help


Phillip SouthernPhillip Southern
Hi Sidhartha, if you're wanting to debug or troubleshoot your code....then system.debug is great way to write data or variable data to the log so you can review later.

system.debug is a good practice when going through your code, however when it is used and frequency is really your discretion.