hax icon indicating copy to clipboard operation
hax copied to clipboard

Engine: better debugging infrastructure

Open W95Psp opened this issue 1 year ago • 3 comments

I would like to have more ergonomic debugging tools in the engine.

I started adding some debugging primitives for types and expressions: the type or expression is pretty printed as Rust and logged in the terminal, along with a PATH leading to a JSON representation of the full AST. I want to generalize that.

Notes:

  • PPX [%debug: type expression]: if head(type expression) is a function in some module Debug.Make(F), then use that function, otherwise defaults to show. This would make
  • tracing like PPX instrumentize, calls [%debug: ..] on arguments, hierachical
  • make those debug/logs handled by the frontend, and show them in the web debugger

W95Psp avatar Oct 02 '24 07:10 W95Psp

This issue has been marked as stale due to a lack of activity for 60 days. If you believe this issue is still relevant, please provide an update or comment to keep it open. Otherwise, it will be closed in 7 days.

github-actions[bot] avatar Dec 02 '24 02:12 github-actions[bot]

This issue has been closed due to a lack of activity since being marked as stale. If you believe this issue is still relevant, please reopen it with an update or comment.

github-actions[bot] avatar Dec 10 '24 02:12 github-actions[bot]

This issue has been marked as stale due to a lack of activity for 60 days. If you believe this issue is still relevant, please provide an update or comment to keep it open. Otherwise, it will be closed in 7 days.

github-actions[bot] avatar May 08 '25 00:05 github-actions[bot]

Not relevant anymore for OCaml. @W95Psp write an issue for Rust AST.

karthikbhargavan avatar Jun 05 '25 11:06 karthikbhargavan

Let's close this one, it's very OCaml specific actually.

W95Psp avatar Jul 03 '25 14:07 W95Psp