There are tons of questions & answers about specific instances of this issue. My question is more general:
In debug mode, there are no compiler warnings, and the screen looks as it should. Obviously there's a print statement in the console, but that's so easy to miss. In release mode, the widget gets painted totally grey, because of the exception.
How do I either:
- Get Debug mode to treat the exception like it would in Release (aka paint the widget grey, or similar), without actually building for Release.
- Get a compiler warning/error about the issue, or maybe something similar that a separate dependency/linter could provide.