Before winter 17 release, you can enable debug logs for site users (Guest users related to force.com sites) but after winter 17 release, Salesforce is not capturing the logs of site users as large number of events can quickly fill the debug logs.
So in order to enable logs for site users if you have to debug some issue related to VF page hosted on force.com site, then you have to set special cookie in user's browser.
Follow below steps in order to set cookie in google chrome:
So in order to enable logs for site users if you have to debug some issue related to VF page hosted on force.com site, then you have to set special cookie in user's browser.
Follow below steps in order to set cookie in google chrome:
- Navigate to your site.
- Open Chrome Developer tools or press Cntrl + Shift + J.
- Enter below instruction to set cookie
- 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, myTestDomain.com), then use document.cookie="debug_logs=debug_logs;domain=myTestDomain.com";
To set a browser cookie in for other browsers, you have to install a plug-in or extension.
I have one integration user, which is used for creating cases on salesforce. But even after placing the debug log in rest class, I am not able to see the debug statements in debug_logs. Do you have any idea about this?
ReplyDelete