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

1

1 Answer 1

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";
2
  • 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
    Commented Jul 17, 2017 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
    Commented Aug 29, 2017 at 9:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .