Does salesforce count calls to system.debug() against the code coverage?



Does salesforce count calls to system.debug() against the code coverage?..

Answer / Ram Gopal

Yes, Salesforce counts calls to `System.debug()` against Code Coverage. If you want to exclude specific lines from Code Coverage, you can use `NDC.push('your_tag')` before calling `System.debug()`, and then `NDC.pop()` at the end of the block or method you want to exclude.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Salesforce Interview Questions

What is cloud computing security?

1 Answers  


Can you tell the number of active assignment rules for a lead/case?

1 Answers  


What is the character limit for custom labels?

1 Answers  


How access to reports and dashboard is controlled in salesforce? : salesforce reports and dashboards

1 Answers  


Is it possible to change master-detail relationship to lookup relationship? : salesforce objects & fields

1 Answers  


What is a visualforce page?

1 Answers  


Explain salesforce.com security implementation with respect to profiles, roles, and hierarchy, sharing rules, owd(org-wide default settings)?

1 Answers  


What are Organization Wide Defaults?

1 Answers  


When should apex be used?

1 Answers  


What is difference between soql and sosl?

1 Answers  


What is a Sharing Rule?

1 Answers  


What is the use of the aura:method tag in lightning ? : salesforce lightning component

1 Answers  


Categories