Framework Exceptions

There is a bad trend with some popular frameworks.  Every now and then your code will throw an exception.  Typically, you look through the stack trace and fix the bug.  But on occasion  the exception is from within the framework.  You see absolutely nothing in the stack trace that refers to any of your code.  But how is that possible?  Clearly it is some code that you wrote that is causing the exception but your code is completely absent from the stack trace.  How are you supposed to debug this?  Of course you can step through your code or back out recent changes, but that is a complete pain in the rear.  Framework writers and contributors.  Please, please, please prioritize preventing these types of magical exceptions.Good Luck,