Couchbase interview question

How do you approach debugging a problem?