diff --git a/includes/quail_api_reporters.inc b/includes/quail_api_reporters.inc
index af74781..568ed47 100644
--- a/includes/quail_api_reporters.inc
+++ b/includes/quail_api_reporters.inc
@@ -44,6 +44,8 @@ class reportQuail_api extends quailReporter {
 
     $results = $this->guideline->getReport();
 
+   watchdog('debug', "in generate_report(), results = " . check_plain(print_r($results, TRUE)));
+
     if (!is_array($results)) return;
 
     foreach ($results as $test_name => $test) {
@@ -86,6 +88,7 @@ class reportQuail_api extends quailReporter {
           $this->quail_api_report['report'][$severity][$test_name]['total']++;
           $this->get_test_results_array($severity, $test_name, $problem_id, $problem);
           $this->quail_api_total_problems++;
+          watchdog('debug', "in get_test_results(), PID='$problem_id', Totals='" . $this->quail_api_report['total'] . ':' . $this->quail_api_report['report'][$severity]['total'] . ':' . $this->quail_api_report['report'][$severity][$test_name]['total'] . "', Name = '$test_name', Problem = " . check_plain(print_r($problem, TRUE)));
         }
       }
 
diff --git a/quail_api.module b/quail_api.module
index f2ca56d..c0f02c2 100644
--- a/quail_api.module
+++ b/quail_api.module
@@ -786,6 +786,8 @@ function quail_api_validate_markup($html, $standard, $display_level = NULL, arra
     $display_level = quail_api_get_default_display_level($function_history);
   }
 
+  watchdog('debug', "In quail_api_validate_markup(), " . "standard = '" . check_plain(print_r($standard, TRUE)) . "', display level = '" . check_plain(print_r($display_level, TRUE)) . "'");
+
   $results = array('report' => NULL, 'total' => 0);
 
   $quail = new quail($html, $standard['guideline'], 'string', $standard['reporter']);
@@ -802,6 +804,22 @@ function quail_api_validate_markup($html, $standard, $display_level = NULL, arra
 
   if (!isset($results['report']) || !is_array($results['report'])) {
     $results['report'] = FALSE;
+    watchdog('debug', "In quail_api_validate_markup(), nothing to report.");
+  }
+  else {
+    $debug_string = '';
+    foreach ($results['report'] as $key => &$value){
+      if (is_array($value)){
+        foreach ($value as $subkey => &$subvalue){
+          $debug_string .= "At '$key'->'$subkey', value = '" . check_plain(print_r($value, TRUE)) . "'<br><br>\n";
+        }
+      }
+      else {
+        $debug_string .= "At '$key', value = '" . check_plain(print_r($value, TRUE)) . "'<br><br>\n";
+      }
+    }
+
+    watchdog('debug', "In quail_api_validate_markup(), report = <br>\n" . $debug_string);
   }
 
   return $results;
@@ -955,6 +973,10 @@ function quail_api_save_test($test_data, array $function_history = array()) {
     $data['description'] = $test_data['description'];
 
     $result = drupal_write_record('quail_api_tests', $data, $primary_key);
+    watchdog('debug', "in quail_api_save_test(), saving '" . $test_data['machine_name'] . "', result = '" . check_plain($result) . "'");
+  }
+  else {
+    watchdog('debug', "in quail_api_save_test(), not saving, data for '" . $test_data['machine_name'] . "' already exists.");
   }
 
   return $result;
