diff --git a/test/asf/asfframework.py b/test/asf/asfframework.py
index 37aa263..1214fbf 100644
--- a/test/asf/asfframework.py
+++ b/test/asf/asfframework.py
@@ -1190,7 +1190,11 @@
             c = c[thread][index]
         else:
             c = sum(x[index] for x in c)
-        self.assert_equal(c, expected_value, "counter `%s'" % counter)
+        self.logger.debug(
+            "validate counter `%s[%s]', expected: %s, real value: %s"
+            % (counter, index, expected_value, c)
+        )
+        self.assert_equal(c, expected_value, "counter `%s[%s]'" % (counter, index))
 
     def assert_packet_counter_equal(self, counter, expected_value):
         counter_value = self.get_counter(counter)
diff --git a/test/framework.py b/test/framework.py
index 8f9a45b..dc08ad0 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -1421,7 +1421,11 @@
             c = c[thread][index]
         else:
             c = sum(x[index] for x in c)
-        self.assert_equal(c, expected_value, "counter `%s'" % counter)
+        self.logger.debug(
+            "validate counter `%s[%s]', expected: %s, real value: %s"
+            % (counter, index, expected_value, c)
+        )
+        self.assert_equal(c, expected_value, "counter `%s[%s]'" % (counter, index))
 
     def assert_packet_counter_equal(self, counter, expected_value):
         counter_value = self.get_counter(counter)
