resyntax icon indicating copy to clipboard operation
resyntax copied to clipboard

More automatic rule debug logs

Open jackfirth opened this issue 5 months ago • 0 comments

Currently, define-refactoring-rule automatically inserts a debug logging statement for every #:when condition in the rule that logs if the condition was false, causing the rule to not match. There should be similar logging added to #:with patterns, because a #:with pattern failing to match is not an error and simply causes the whole rule to not match. Additionally, there should be an #:undo statement added to every rule which logs (at debug level) when the entire partial rule match is discarded, for any reason. This should make debugging #lang resyntax/test failures easier, since they automatically capture debug logs.

jackfirth avatar Sep 02 '25 19:09 jackfirth