[3.1-Beta4-6] Exporting only works properly with Debugging Enabled

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Zeero

I’m trying to export my project for Windows (trying to run with Win10) and it works fine with debugging enabled and disabled, but the main scene only loads properly with debugging mode enabled (it starts with a login popup that after some checks shows up, this loads properly with debugging mode on but doesn’t show up at all without it)

I’ve updated to Beta-6 but had the same issue with Beta-4

:bust_in_silhouette: Reply From: Zeero

Found it! By enabling logs I could see that without debugging enabled, it showed some script errors that were uncaught by editor even exporting with debugging enabled!

In my particular case, it was due to something similar to that:

for numerical_string in array:

The log output the following about this:

**SCRIPT ERROR**: Parse Error: Cannot assign a new value to a constant.

Reporting Particular situation there

General solution:
Enable logging