Skip to main content
I have a very basic question. Through Force.com developer console I created a new apex class..say xyz.apxc then I wrote my code and saved my class..now I want to run that class using Developer console.. how I can do that..? Please tell me how can I use System.debug to  execute my class...What will be the steps..?
4 respuestas
  1. 18 jun 2016, 9:43
    Hi Saurabh,

    To execute your class follow the steps below:

    1) Click Debug. | Open Execute Anonymous Window or CTRL+E.

    2) In the Enter Apex Code window, call the method with the name of the class if method is static

    3) Click Execute

    Hi Saurabh,To execute your class follow the steps below:1) Click Debug. | Open Execute Anonymous Window or CTRL+E.

    User-added image

    If you want to see debug log then select Debug Only option

    User-added image

    Regards,

    Ajay
0/9000