Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18265] iOS: App is not suspended on exceptions

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-12-30T23:32:48.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sRelease 3.5.0
ComponentsiOS
Labelsqe-3.5.0
ReporterPraveen Innamuri
AssigneePedro Enrique
Created2014-12-19T02:51:16.000+0000
Updated2014-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.

Comments

  1. Praveen Innamuri 2014-12-19

    Addressed as part of https://github.com/appcelerator/titanium_mobile/pull/6519 https://github.com/appcelerator/titanium_mobile/pull/6518
  2. Wilson Luu 2014-12-30

    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)
  3. Wilson Luu 2014-12-30

    Reopening to add Affect Versions.

JSON Source