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
sancarlos94070sancarlos94070 

Cannot get System.debug data to appear when calling Apex from S-Control

I have a very simple code that works fine but I'm not getting any output from System.debug in the system log window.  What have I missed?  Thanks.  web service apex code below:

 

global class myHelloWorld {
   
    // eyCDUkymDHyd9MisHBFLPIYJm
   
    webService static String getHelloWorld() {
       
        System.LoggingLevel level = LoggingLevel.FINEST;
       
        System.debug('Entering Hello World');
        String hello = 'Hello World';
        System.debug('Leaving Hello World');
       
        return hello;
    }
   

}

MukulMukul

Hi there,

 

I am facing a similar issue. Did you find a solution to it?

 

Regards

sancarlos94070sancarlos94070
We tried debug log per SFDC suggestions. It works to certain extent, i.e. if your code runs then it works, but doesn't work if your code doesn't run as expected, i.e. when you need logging the most.
MukulMukul

Thanks SanCarlos. I was able to see the debug statements in the Apex debug log but it really doesnt show anything when the code stops. I have System.debug statements everywhere and it shows some and doesnt show some.

 

How did you tackle such situations?

 

Regards

Mukul