+ Start a Discussion

help on debuglogs

Hi experts,i have created a Debug log for the user and then i run the testclass unable to see the debuglogs please help me out

Thanks in advance.
mukesh guptamukesh gupta


you can see debug log which user you associated in Debug log. Suppose you set Debug log for 'XYZ' user then you need to logged In by 'XYZ' user the you can see debug log related to this user.

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.



Thanks for ur reply ,i logged in as user but unable to see the logs please help me out
SwethaSwetha (Salesforce Developers) 
HI ,
How are you viewing the debug logs? Can you try developer console as mentioned in https://developer.salesforce.com/forums/?id=906F0000000BQf9IAG

Make sure the sure is the correct one. You have to find the user that started the test in question. The user can be found by going to Setup > Develop > Apex Test Execution and inspecting the Test run to find the email of the user.

See this post https://salesforce.stackexchange.com/questions/8480/where-can-i-read-the-debug-output-of-test-classes

If this information helps, please mark the answer as best. Thank you
AnkaiahAnkaiah (Salesforce Developers) 

You need to sepup debug logs for the specific user then login as she/him and run the test class, you can able to see the logs.

Debug log setup Navigation:
Setup--> Logs --> Debug Logs --> click on new 

User-added image

After debug log setup for the specific user, Login as him/she and run the test class and then check the logs.

User-added image

If this helps, Please mark it as best answer.


Hi  Ankaih thanks for your response,tried many times but not able to see am able to see in my personal org but not in the sandbox