protocompile icon indicating copy to clipboard operation
protocompile copied to clipboard

Add a debug feature to record the callsite of calls to construct new AST nodes

Open mcy opened this issue 1 year ago • 0 comments

This is enabled by setting ast.Nodes.EnableTracing. It's implemented by recording the arena address of each node in a map, and having ast nodes call up that map as needed.

As future work, we could unify this and the tracing support in the report package, and introduce some way to annotate call frames with more debugging information.

mcy avatar Dec 17 '24 20:12 mcy