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
Supriya Adlinge 1Supriya Adlinge 1 

Problem with debug logs in developer console.

Hi all,

After running apex from anonymous window,logs tab not showing anything.
I have created user log in search>debug log>new logs. but I want debug logs directly in developer console.
Please help me with same.

Thanks.
NagendraNagendra (Salesforce Developers) 
Hi Supriya,

Assuming that you want to display debug logs in developer console

Please find the suggested solution below.

There is no solution other than adding the user to the Monitored user section.You can always reset the log request count.
Just to clarify, suppose if it happens every time code executes the logs will take more size than your actual database size that's why Salesforce set a limit to the logs so that whenever we need to investigate we can check logs and avoid saving to many on logs in the database.

Go to Setup -> Monitor -> Logs -> Debug Logs

Add your Username under "Monitored Users".

The log should appear under the Debug Logs section once you have executed the code.

Please let us know if you have any further queries.

Please mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra

 
Supriya Adlinge 1Supriya Adlinge 1
Hi Nagendra ,
Thanks for your reply. I tried it. but I want debug logs in developer console log tab. Is there any option to make it visible.