+ 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