That's a lot of layers for a codebase... I see that it could be useful in that situation, but since you presumably need to test and QA your code anyway you could also throw in a console log statement.
There is also JSDoc.
Although these solutions might not be quite as nice, I'd wager they'd save quite a bit of headache and time.