This function throws exception and generates useful debug information, as well as instructions on how to report the bug.