diff --git a/maca_common/src/macaon_compute_l_rules.cpp b/maca_common/src/macaon_compute_l_rules.cpp
index d4f425edabb54d65d65d99d73b3772c83c3eec89..ce889cecd61fa436650f7eee80aaceb51fca1f3d 100644
--- a/maca_common/src/macaon_compute_l_rules.cpp
+++ b/maca_common/src/macaon_compute_l_rules.cpp
@@ -93,6 +93,7 @@ int main(int argc, char * argv[])
   std::string rulesFilename = vm["rules"].as<std::string>();
   int threshold = vm["threshold"].as<int>();
   bool strict = vm.count("strict") == 0 ? false : true;
+  bool debug = vm.count("debug") == 0 ? false : true;
 
   File fplm(fplmFilename, "r");
   char buffer[100000];
@@ -127,6 +128,16 @@ int main(int argc, char * argv[])
         fprintf(exceptionsFile.getDescriptor(), "%s\n", line.c_str());
   }
 
+  if (debug)
+  {
+    for (auto & it : rules)
+    {
+      fprintf(stderr, "<%s> : %lu\n", it.first.c_str(), it.second.size());
+      for (auto & example : it.second)
+        fprintf(stderr, "\t<%s>\n", example.c_str());
+    }
+  }
+
   return 0;
 }