Skip to main content
Milan Dutta (Bankers Life and Casuality) 님이 #Apex에 질문했습니다
Can we able to see the debug ststement if we write System.Debug within a Constructor?
답변 2개
  1. 2016년 4월 26일 오전 5:47
    Yes you can...

    Please check below post for more information

    1) https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_debugging_debug_log.htm

    2) http://salesforce.stackexchange.com/questions/36582/how-do-i-start-to-debug-my-own-apex-code

    3) http://www.sfdc99.com/2014/02/22/debug-your-code-with-system-debug/

    Sample code for you

    public class DemoClass

    {

    public DemoClass()

    {

    System.debug('-------Hello---------->');

    }

    }

    How to execute above code from developer console

    DemoClass obj = new DemoClass();

    Please let us know if this will help you.

     
0/9000