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
MTBRiderMTBRider 

How to get the System Log to work consistently

What is the trick to get the system log to actually show your debug statements consistently?  Whether it shows them seems to be based on luck and I am not very lucky today.
 
Thanks
jpizzalajpizzala
I've encountered this issue many times and have yet to find a true solution.  I usually just close the failing log window, refresh the page, open a new log window and execute the VF or Apex again.

A hokey work-around for sure, but it seems to work most of the time.
blntblnt

 

When the system log window fails, I usually get the following error in the FF3 JS error console

Error: $("body") is null
Source File: https://cs1.salesforce.com/apexdebug/apexdebuglogdata.js
Line: 898
 

 

any ideas?