Disable remote debugging when production mode is enabled
John Stucklen
Currently, if you enable production mode via the expo developer tools while remote debugging is enabled on the device you will be testing on (e.g., iOS simulator) you will receive a very unhelpful crash when your app starts in expo go. There's a screenshot of it in this closed expo issue: https://github.com/expo/expo/issues/4500
It is non-obvious from the error that the issue is due to remote debugging being enabled. It's easy to waste hours trying to fix the problem when this happens.
I'd like to request that remote debugging be disabled automatically when production mode is enabled to prevent the crash.
Alternatively (because...maybe that's difficult?), giving a more helpful error message when remote debugging is enabled with production mode enabled would save a lot of time for developers that hit this problem. :)