Easily trace value and literal of a Swift expression right at the point of evaluation.
Any Swift expression
that needs tracing is replaced with
and that's it. Nested expressions might be traced as well.
x$ alternative might be defined as necessary by the client.
Logging implementation should be defined by the client.
Tracing might be reverted by removal of
x$() or even removal of
() in place.
Alternatively, tracing might be disabled per-block.
It's required to bundle the corresponding source files together with the modules, if you want to see the expression literals for the traced stuff, as they're looked up at runtime. It might be improved later. For now, for performance reasons, it's possible to disable the lookup completely. (Theoretically) it's possible to recover the literals given the traced output with lookups disabled.
|Last commit: 2 weeks ago|