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
Harald KloseHarald Klose 

newly entered lines of system.debug are not showing

Hello,

is something wrong with system.debug? It is not showing new Debug logs. The lines that were entered
some time ago are still displayed. The lines that were entered yesterday are not showing. Here is the
Visualforce Page line whith the button I clicked:

<apex:commandButton action="{!BarVerkaufLieferungen_speichern}" value="Zuordnung speichern" onclick="return confirmCancel()" immediate="true" rendered="{!Sani_prop}"/>

Her is the controller code snippet:

line 5354  public PageReference BarVerkaufLieferungen_speichern() {
line 5355 system.debug(LoggingLevel.DEBUG,'################## LiPosList_prop ' + LiPosList_prop);

And here you see the debug log lines:

13:06:17.205 (205702000)|CODE_UNIT_STARTED|[EXTERNAL]|01pA0000002QLUm|BarVerkaufWizardController invoke(BarVerkaufLieferungen_speichern)
13:06:17.205 (205817000)|SYSTEM_MODE_ENTER|false
13:06:17.205 (205854000)|STATEMENT_EXECUTE|[5354]
13:06:17.205 (205871000)|STATEMENT_EXECUTE|[5355]
13:06:17.206 (206496000)|PUSH_TRACE_FLAGS|[5355]|01pA0000002QLUm|BarVerkaufWizardController|APEX_CODE,INFO;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
13:06:17.206 (206597000)|STATEMENT_EXECUTE|[128]
13:06:17.206 (206613000)|STATEMENT_EXECUTE|[2678]
13:06:17.206 (206625000)|STATEMENT_EXECUTE|[2679]

After this I can't find any lines with the hash in the debug log!

The debugs that were entered before, are still displaying.

Any ideas? Thanks!


Harald
Best Answer chosen by Harald Klose
SFDC_DevloperSFDC_Devloper
Hi,

try below one line code ..
System.debug(Logginglevel.ERROR , ' ::::::: My Debug :::::::::::::') ;

Thanks.
Rockzz

All Answers

SFDC_DevloperSFDC_Devloper
Hi,

try below one line code ..
System.debug(Logginglevel.ERROR , ' ::::::: My Debug :::::::::::::') ;

Thanks.
Rockzz

This was selected as the best answer
Ramu_SFDCRamu_SFDC
Hi Harald, not sure if you are aware of the debug log limit of 2 mb. If the debug log statements exceed 2mb size, some of those debug lines gets trucated in the debug log and does not show up. The lines that are truncated can be from anywhere in the apex.

This is the excerpt from the salesforce article "Each debug log can only be 2 MB. Debug logs that are larger than 2 MB are reduced in size by removing older log lines, such as log lines for earlier System.debug statements. The log lines can be removed from any location, not just the start of the debug log."

Below is the link to the full article
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_debugging_debug_log.htm



Harald KloseHarald Klose
Thanks Rockzz, that solved the issue!