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
mdelgadomdelgado 

Where is system.debug displayed?

Hello,

 

I've inherited a salesforce implementation.  I am reviewing the apex code and have the following question

 

1) I noticed that system.debug was being used for debugging.  Where is the output trace displayed?

2) In most places in the code, system.debug had been commented.  What is the impact of not commenting (after testing)?

 

thanks for your help,

 

Mirko

Best Answer chosen by Admin (Salesforce Developers) 
IspitaIspita

Hi,

The system.debug is displayed in:-

  • debug logs
  • also in the system log window when you execute a code or a trigger is run in the backgroud.

Hope this answers your query..