Please see the following page for how to enable Debug Logs in Salesforce:

Also, periodically debug logs will reach their maximum size without logging the data that you need. You may wish to enable filters to capture only the informaiton you need from the debug logs.  The follow page descibes the various filters available: