@grierson If there’s an exception, check the stack trace. Debugging a configuration is the same as debugging a normal program. Just as vars and functions depend on other functions, so do keys depend on other keys in a configuration.
@weavejester I debugged it by just def`ing hard coded values in a comment block and evaluating each expression in each multi-method. (I missed some brackets, so I was passing the function not the result)
ig/init! :core/routes [_ {:keys [cats dogs]}] ["/api" cats dogs]
But my core routes looks like this, using the names from the config to destruct in the core/routes.
Sorry, I don’t understand
*names keys.
Ah, okay. Glad you got it sorted, even if I wasn’t much help 🙂
I just used Stuart Halloways approach of def’ing hard coded values so that I can then evaluate each expression within each multimethod.