What is the recommended approach for debugging when attempting to identify the cause and effect of a problem?