[TIMOB-18265] iOS: App is not suspended on exceptions
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2014-12-30T23:32:48.000+0000 |
| Affected Version/s | Release 3.5.0 |
| Fix Version/s | Release 3.5.0 |
| Components | iOS |
| Labels | qe-3.5.0 |
| Reporter | Praveen Innamuri |
| Assignee | Pedro Enrique |
| Created | 2014-12-19T02:51:16.000+0000 |
| Updated | 2014-12-30T23:32:48.000+0000 |
Description
- Enable the preference Suspend on exception in Studio > Javascript Debug
- Debug a iOS app onto device/simulator using the below code
function doClick(e) {
var txt = "labelTxt";
alert(txt);
print(e);
}
function print(e) {
var unknown = undefined;
Ti.API.info('info');
Ti.API.warn('warn');
Ti.API.error('error');
throw new Error("testing exception");
}
$.index.open();
The thread does not suspend when we throw the error or exception.
Addressed as part of https://github.com/appcelerator/titanium_mobile/pull/6519 https://github.com/appcelerator/titanium_mobile/pull/6518
Closing ticket as fix. Verified app gets suspended on exceptions in both Titanium and Alloy project. Tested on: Appcelerator Studio, build: 3.4.1.201410281743 SDK build: 3.5.0.v20141222103320 CLI: 3.4.1 Alloy: 1.5.1 Xcode: 6.2 beta 3 Devices: iphone 6 plus (8.1.1), iphone 6 simulator (8.2)
Reopening to add Affect Versions.