Simple hook for debugging directives and the DOM elements they are defined on