exception Try_again
 
 let debug = false
-let debug = true
 let debug_print = if debug then prerr_endline else ignore
 
 (*
       | CicRefine.Uncertain _ ->
           debug_print ("%%% UNCERTAIN!!! " ^ CicPp.ppterm term) ;
           Uncertain,ugraph
-      | CicRefine.RefineFailure _ ->
-          debug_print ("%%% PRUNED!!! " ^ CicPp.ppterm term) ;
+      | CicRefine.RefineFailure msg ->
+          debug_print (
+            (sprintf ("%%%%%% PRUNED!!!\n<<begin cause>>\n" ^^ 
+              "%s\n<<end cause>>\n<<begin term>>\n%s\n<<end term>>") 
+              msg (CicPp.ppterm term)));
           Ko,ugraph
       | CicUnification.UnificationFailure s -> 
         prerr_endline ("PASSADI QUI: " ^ s);