integrant icon indicating copy to clipboard operation
integrant copied to clipboard

Is there a way to analyze components at the repl with their config resolved ?

Open qleguennec opened this issue 2 years ago • 1 comments

Let's say I have an integrant system with multiple components and I want to debug one of them. For that, I need to be able to access the resolved config of that component, to be able to call functions at the repl, and analyze the component's behavior.

Reading the issues, https://github.com/weavejester/integrant/issues/45 was a similar request, but the proposed solution doesn't solve my issue, because ig/resolve-key requires to modify existing production code and I don't want to do that.

Is there a way to do that without touching the config at all ?

qleguennec avatar Mar 12 '24 08:03 qleguennec

You'd need to add in some manner of debugging. For example you could attached the resolved config via metadata, or keep it in an atom, or log it to STDERR or a file, or any of the other usual mechanisms we have for analyzing intermediate data within a program.

weavejester avatar Mar 12 '24 13:03 weavejester