reraise exception in debug mode