Status: Accepted
Owner: sberlin

New issue 631 by sberlin: Offer the dependency hierarchy, for debugging
http://code.google.com/p/google-guice/issues/detail?id=631

When debugging, it's often very useful to be able to get the current state of the dependency chain. It is impossible to to this right now without changing one of your injectables to throw an exception (and letting Guice build up the chain for you, based on the state kept in the stack).

Attached is a small patch that changes InternalContext to keep a queue of its dependencies, so at a minimum someone using the debugger can figure out the chain. A followup to this would be exposing it through something like com.google.inject.util.Debug.getCurrentDependencyChain(), and/or exposing it in the ProvisionInvocation from the patch @ issue 78.

Attachments:
        dep-chain.txt  5.8 KB

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to