Project: titanium
Issue TIMOB-19034: Windows: Building to Emulator Should Allow Error Dialogs
h1. Problem When running the emulator, if errors are encountered, they should show the standard red screen of death to the user. Even if the underlying build type is `release`, we need to find a way to surface these errors to the developer in the traditional Titanium way. h2. Solution Introduce (or tweak, if it's already there) a deploy type with values such as "development" or "production" like we do for other platforms. Then, use this value to decide whether or not we should show the error dialog, instead of the build type. h2. Example {code:javascript} var win = Ti.UI.createWindow(); win.add(Ti.UI.createLabel({ text: 'Please Wait...' })); win.open(); setTimeout(function() { throw new Error('oh no!'); }, 2000); {code} {code}ti build -p windows -C 8-1-1 -G 00000000-0000-1000-8000-000000000000{code}
Story points: 5