Skip to content
Snippets Groups Projects
Commit 3d267acf authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[server] debug markers

parent cdc940d5
No related branches found
No related tags found
No related merge requests found
...@@ -748,6 +748,19 @@ let () = Information.register ...@@ -748,6 +748,19 @@ let () = Information.register
Format.fprintf fmt "%d bytes" bytes Format.fprintf fmt "%d bytes" bytes
end end
let () = Information.register
~id:"kernel.ast.marker"
~label:"Marker"
~title:"Ivette marker (for debugging)"
~enable:(fun _ -> Server_parameters.debug_atleast 1)
begin fun fmt loc ->
let tag = Marker.create_tag loc in
Format.fprintf fmt "%S" tag
end
let () = Server_parameters.Debug.add_hook_on_update
(fun _ -> Information.update ())
(* -------------------------------------------------------------------------- *) (* -------------------------------------------------------------------------- *)
(* --- Marker at a position --- *) (* --- Marker at a position --- *)
(* -------------------------------------------------------------------------- *) (* -------------------------------------------------------------------------- *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment