{ "id": "170594", "key": "TIMOB-25598", "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": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-03-07T00:39:32.000+0000", "created": "2017-12-11T20:46:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-03-07T00:39:38.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Hello,\r\nWe are having issues in being able to debug crashes when trying to access undefined element in an object. \r\n\r\n*Test Code:* \r\nindex.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.js\r\n{code}var helper = require('helper.js');\r\nvar testObject = {\r\n first: {\r\n name: 'test',\r\n city: 'PA',\r\n distance: 2\r\n }\r\n};\r\n\r\nfunction doClick(e) {\r\n helper.getData(function(_data) {\r\n // console.log('distance:', _data.secondObject.distance);\r\n\t\t$.label.text = _data.secondObject.distance;\r\n });\r\n\r\n}\r\n\r\n$.index.open();{code}\r\n\r\nlib/helper.js\r\n{code}exports.getData = function(_callback) {\r\n _callback({\r\n first: {\r\n name: 'test',\r\n city: 'PA',\r\n distance: 2\r\n }\r\n });\r\n};{code}\r\nSteps to reproduce. \r\n1. Run the attached project using above code. \r\n2. Click on Hello, World. \r\n3. The error will be displayed in the console. \r\n\r\nThe error message just says \"*[ERROR] In undefined: undefined, undefined*\" instead of specifying where exactly the error is. In this situation, the error object is showed in the error screen displayed in the app. But, in some scenarios when this happens during a complex operation, app crashes. When that happens, it is really hard to figure out where exactly the issue is. \r\nThat way, even if the app crashes, we can see the error in the console to be able to fix it. \r\n\r\nThanks", "attachment": [ { "id": "63773", "filename": "Info_log.txt", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-12-11T20:44:27.000+0000", "size": 9177, "mimeType": "text/plain" } ], "flagged": false, "summary": "Windows: Error logs are not produced on app crash", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "windows, windows phone, debug issues", "closedSprints": [ { "id": 978, "state": "closed", "name": "2017 Sprint 25 SDK", "startDate": "2017-12-03T23:22:15.144Z", "endDate": "2017-12-17T23:22:00.000Z", "completeDate": "2017-12-18T22:32:02.770Z", "originBoardId": 114 }, { "id": 984, "state": "closed", "name": "2017 Sprint 26 SDK", "startDate": "2017-12-17T22:34:59.726Z", "endDate": "2017-12-31T22:34:00.000Z", "completeDate": "2018-01-02T16:57:05.655Z", "originBoardId": 114 }, { "id": 985, "state": "closed", "name": "2018 Sprint 01 SDK", "startDate": "2017-12-31T16:58:54.631Z", "endDate": "2018-01-14T16:58:00.000Z", "completeDate": "2018-01-17T22:44:27.028Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "432000", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1167", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-12-12T05:30:34.000+0000", "updated": "2017-12-12T05:30:34.000+0000" }, { "id": "435121", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket; Verified fix in SDK Version: 7.1.0.v20180228160738 and SDK Version: 7.2.0.v20180301101144.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-02T18:16:48.000+0000", "updated": "2018-03-02T18:16:48.000+0000" }, { "id": "435284", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening - just wanted to update ticket title for better description.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-03-07T00:38:52.000+0000", "updated": "2018-03-07T00:38:52.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }