To Create debug log in salesforce for force.com communities, follow below steps:
- Open the url in browser.
- Then, open the browser’s console.
- document.cookie=”debug_logs=debug_logs;domain=.force.com”; If you are using foce.com domain. If using Custom domain use (copy and paste in devTool console of browser) document.cookie=”debug_logs=debug_logs;domain=yourCustomDomain.com”;
- Create debug log in salesforce using community user. To identify community user go to Site, Select your site from the Site Label column. Click on ‘Public Access Setting’ button and on that page click on ‘User’ button to see the user.