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
Micky MMicky M 

Sheduled apex

Hi All,

I have a sheduled job that i need to debug, but where can i see system.debug output statements, and is it really only possible to run these jobs every hour?

Thanks
Avidev9Avidev9
well you can see all your debug statement in Debug Logs under setup. You have to create one for the current running user or the user whoch scheduled the job. You can read more about debug logs here http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_debugging_debug_log.htm

Schedule jobs are pretty flexible and have different job frequency that you set using Cron String. You can find the same here http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm
Marty C.Marty C.

Hello, Micky,

What is the nature of your scheduled job? As with all Apex, the best way to troubleshoot problems is to use Apex tests to assert the expected behavior you want to see. This way, you not only get the benefit of being able to actively debug your code (instead of waiting for the next hour), you also are more assured that your code will function correctly when more customizations are added in the future.