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
Yogesh Dighe.Yogesh Dighe. 

Is there is any problem in my simple apex code? I cant see DEBUG output.

Is there is any problem in my simple apex code? I cant see DEBUG output on my developer console!
====================================================
public class StrTest
{
    public void generateStringArray(Integer length)
    {
        List<String> myArray = new List<String>();
        for(Integer i=0;i<length;i++)
        {
            myArray.add('Test ' + i);
        }
        System.debug('****' + myArray);
    }      
}

====================================================
developer console>debug>open execute anonymous window>execute.
when i execute code, still i cant see DEBUG output :(

StrTest ob=new StrTest();
ob.generateStringArray(5);

====================================================
plz help me,
THANX in Advance :)
 
Best Answer chosen by Yogesh Dighe.
Yogesh Dighe.Yogesh Dighe.
@ Sagar- YES, I was do that, and also do Monitor>>logs>>Debug logs. still i cant see DEBUG output :( there is any setting for Debug output.??

All Answers

Sagar PareekSagar Pareek
There is no problem with your code.

Please refer to below snapshots 

1. Have you marked Open log while executing the code?

User-added image

2. When you opened the Logs did you tried to search as USER_DEBUG in filter?

User-added image
Yogesh Dighe.Yogesh Dighe.
@ Sagar- YES, I was do that, and also do Monitor>>logs>>Debug logs. still i cant see DEBUG output :( there is any setting for Debug output.??
This was selected as the best answer