{ "id": "141910", "key": "TIMOB-18265", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-30T23:32:48.000+0000", "created": "2014-12-19T02:51:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.5.0" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-12-30T23:32:48.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "- Enable the preference Suspend on exception in Studio > Javascript Debug\r\n- Debug a iOS app onto device/simulator using the below code\r\n{code}\r\nfunction doClick(e) {\r\n\tvar txt = \"labelTxt\";\r\n alert(txt);\r\n print(e);\r\n}\r\n\r\nfunction print(e) {\r\n\tvar unknown = undefined;\r\n\tTi.API.info('info');\r\n Ti.API.warn('warn');\r\n Ti.API.error('error');\r\n \tthrow new Error(\"testing exception\");\r\n}\r\n\r\n$.index.open();\r\n\r\n{code}\r\n\r\nThe thread does not suspend when we throw the error or exception.", "attachment": [], "flagged": false, "summary": "iOS: App is not suspended on exceptions", "creator": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "337220", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Addressed as part of \r\nhttps://github.com/appcelerator/titanium_mobile/pull/6519\r\nhttps://github.com/appcelerator/titanium_mobile/pull/6518", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-19T22:06:57.000+0000", "updated": "2014-12-19T22:06:57.000+0000" }, { "id": "337677", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fix. Verified app gets suspended on exceptions in both Titanium and Alloy project. \r\n\r\nTested on:\r\n\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nSDK build: 3.5.0.v20141222103320\r\nCLI: 3.4.1\r\nAlloy: 1.5.1\r\nXcode: 6.2 beta 3\r\nDevices: iphone 6 plus (8.1.1), iphone 6 simulator (8.2)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-30T23:17:00.000+0000", "updated": "2014-12-30T23:17:00.000+0000" }, { "id": "337680", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to add Affect Versions.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-30T23:32:39.000+0000", "updated": "2014-12-30T23:32:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }