in
HLog.debug ("Executing: ``" ^ stm ^ "''"))
in
+ let matita_debug = Helm_registry.get_bool "matita.debug" in
try
let grafite_status'', lexicon_status'' =
match eval_function lexicon_status' grafite_status' is cb with
| End_of_file
| CicNotationParser.Parse_error _ as exn -> raise exn
| exn ->
- HLog.error (snd (MatitaExcPp.to_string exn));
+ if not matita_debug then
+ HLog.error (snd (MatitaExcPp.to_string exn)) ;
raise exn
let fname () =
exit 0
end
with
- | Sys.Break ->
+ | Sys.Break as exn ->
+ if matita_debug then raise exn;
HLog.error "user break!";
pp_times fname bench_mode false big_bang;
if mode = `COMPILER then