+ Start a Discussion

Unable to debug Self registration page on communities

 I have a visualforce page and an apex class written. I have added that as the community self registartion page in the community settings.   How do I debug the code using UI?
Amol ChAmol Ch
Hi H k,

Guest site user debug is not showing in debug log, it is related to Winter 17 change. Now need to set a special cookie from their side so that Salesforce will generate logs only when that user accesses the site. 

The debug logs are collected for site visitors who are using the Guest User license only when a public user’s browser has a special cookie.

To set this cookie via Chrome, Navigate to the Site URL,
Go to Developer tools and then to Console tab, Execute a below command to set the cookie.

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

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

You can follow the below steps to set debug log. :
Setup > Monitoring > Debug Log  > Site Guest User

In debug log there is a User for every site and name of the user like"Site Guest User, Name of Site" So you need to set debug log for site Guest User.

For more help you can refer the below reference document.


Mark it as a best answer if it solved your problem