X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fmatita.ml;h=64d1a4513ebed04a6c7fa8427aa8094a9f4b3da3;hb=7fad6f9727bb6f054c0198cf10354be4b355baef;hp=b39eb85313030bb475af71efe000d7f53b27e7ab;hpb=910c252965fe17d6b5af92e4658e7d02bac82d58;p=helm.git diff --git a/helm/software/matita/matita.ml b/helm/software/matita/matita.ml index b39eb8531..64d1a4513 100644 --- a/helm/software/matita/matita.ml +++ b/helm/software/matita/matita.ml @@ -105,7 +105,9 @@ let _ = (** {{{ Debugging *) let _ = - if BuildTimeConf.debug then begin + if BuildTimeConf.debug || + Helm_registry.get_bool "matita.debug_menu" + then begin gui#main#debugMenu#misc#show (); let addDebugItem ~label callback = let item = @@ -114,6 +116,9 @@ let _ = let addDebugSeparator () = ignore (GMenu.separator_item ~packing:gui#main#debugMenu_menu#append ()) in + addDebugItem "dump aliases" (fun _ -> + let status = script#lexicon_status in + HLog.debug (DisambiguatePp.pp_environment status.LexiconEngine.aliases)); addDebugItem "dump environment to \"env.dump\"" (fun _ -> let oc = open_out "env.dump" in CicEnvironment.dump_to_channel oc;