| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | let rawdebug = ref false |
| 12 | |
| 13 | let () = |
| 14 | Flags.in_debugger := true; |
| 15 | Goptions.set_bool_option_value ["Printing";"Existential";"Instances"] true; |
| 16 | PrintingFlags.print_universes := true; |
| 17 | Goptions.set_bool_option_value ["Printing";"Matching"] false; |
| 18 | Goptions.set_bool_option_value ["Printing";"Sort";"Qualities"] true; |
| 19 | (* When printers are used from ocamldebug, they should not make calls to the global env |
| 20 | since ocamldebug runs in a different process and does not have the proper env at hand *) |
| 21 | Constrextern.set_extern_reference (if !rawdebug then Top_printers.raw_string_of_ref else Top_printers.short_string_of_ref) |