Friday, November 4, 2011

Salesforce How to Debug / Troubleshoot using the Salesforce Debug Logs

Setting up your user for Debug Log monitoring
  1. Name / Setup / Administration Setup / Monitoring / Debug Logs
  2. Click ‘New’.
  3. Select your User from the lookup. Click 'Save'.
    1. Your user is now setup to monitor and record a debug log for every page load of a visualforce page in salesforce. These logs can be viewed or downloaded for review.
    2. You get 20 Debug Log requests at a time... this is to prevent stacking up a bunch of unused logs, so whenever you are done using the debug logs, remove your User from the list to monitor debug logs, or click 'Reset' next to your User and it will give you a fresh 20 requests. Otherwise your name will be automatically removed from the list to monitor debug logs once you reach your 20 request limit.
Using the Debug Log