The way to avoid this problem is to remove the --release from your run configuration (or delete the run configuration with --release if you have separate ones for dev builds and release builds, as I had) and instead use the profile selection dropdown to switch between dev and release.