Skip to content

Conversation

kcdodd
Copy link

@kcdodd kcdodd commented Apr 25, 2025

This adds a wrapper around debug.callback() that automatically converts captured local variables to callback arguments for staging, and reconstructing with runtime values. The motivation and constraints on staging out things like f-strings in debug.print were discussed in #26296, instead this solution is based on "lambda capture" (closures) to remove the need for manually maintaining a separate list of arguments.

Closes: #26296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for f-strings in debug.print

1 participant