0

document.cookie = "debug_logs=debug_logs;domain=.force.com";

I have used this code to set up debug log for my community page but it is not working.This was working when I logged in as a public site user. Please guide me how to set debug log for my community page. Thanks in advance

3

Please check your Domain name, the command you mentioned is for .force.com domain. Please use the appropriate command as below. You can find more details in this link.

If you use a .force.com domain, use this command.

document.cookie="debug_logs=debug_logs;domain=.force.com";

If you use a custom domain (for example, yourCustomDomain.com), use this command.

document.cookie="debug_logs=debug_logs;domain=yourCustomDomain.com";
|improve this answer|||||
  • Hi, I'm having the same issues as below. I can get debug logs to work for a test force.com site but not for a community. The Community URL uses force.com also. Should the document.cookie="debug_logs=debug_logs;domain=.force.com"; command not work for the community also? Thanks – RedQueries Jul 17 '17 at 21:37
  • I'm having the same issue without any luck. It works on site but not community. I'm debugging the community guest user and inserted the cookie, but no log. – user8310 Aug 29 '17 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.