Show warnings for debug builds or when `--debug-python` is passed in. Without this, only scripts running in the `__main__` namespace show warnings - hiding warnings for almost all scripts & add-ons. This is also needed so deprecation warnings can be shown, see !139487.