Skip to content

Commit

Permalink
Add debug_printers.ml (#63)
Browse files Browse the repository at this point in the history
Add some helper files to make it easier to install useful printers
when debugging the compiler with ocamldebug.
  • Loading branch information
lpw25 authored Nov 15, 2022
1 parent 65f2896 commit e7dd740
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/debug_printers
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
load_printer "tools/debug_printers.cmo"
install_printer Debug_printers.type_expr
install_printer Debug_printers.ident
install_printer Debug_printers.path
5 changes: 5 additions & 0 deletions tools/debug_printers.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

let type_expr = Printtyp.raw_type_expr
let ident = Ident.print_with_scope
let path = Path.print

0 comments on commit e7dd740

Please sign in to comment.