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:
numerical_string=int(numerical_string)
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