{ "id": "102232", "key": "TIMOB-11173", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-07-10T22:17:18.000+0000", "created": "2012-09-26T20:42:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "debugger", "qe-and090112" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "21575", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "102230", "key": "TIMOB-11172", "fields": { "summary": "iOS: Debugger: breakpoint at unassigned variable declaration skipped", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "21582", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "102258", "key": "TIMOB-11182", "fields": { "summary": "Android: Debugger: breakpoints at line 1 skipped and resumed at next statement", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-10T22:17:18.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Breakpoints at global unassigned variable declarations are skipped and hit at next statement instead. However, unassigned variable declarations in anonymous functions are correctly hit.\r\n\r\nFor example:\r\n\r\n{code}\r\nvar deadVar1; // breakpoint\r\n\r\nTi.API.info('Global Variables Defined!');\r\n\r\n(function(){\r\n\tvar deadVar2; // breakpoint\r\n\t\r\n\tTi.API.info('Anonymous Function Called!');\r\n})();\r\n\r\nalert('App Exited!');\r\n{code}\r\n\r\nRunning this code in debug mode will result in the first breakpoint being hit at the next statement (e.g., 'var deadVar1' stops at 'Ti.API.info('Global Variables Defined!')').\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code in debug (manually insert breakpoints as per code comments):\r\n\r\n{code}\r\nvar deadVar1; // breakpoint\r\n\r\nTi.API.info('Global Variables Defined!');\r\n\r\n(function(){\r\n\tvar deadVar2; // breakpoint\r\n\t\r\n\tTi.API.info('Anonymous Function Called!');\r\n})();\r\n\r\nalert('App Exited!');\r\n{code}\r\n\r\nActual Result:\r\n\r\nApp skips the first breakpoint, but stops at the next statement.\r\n\r\nPressing 'Resume' will correctly hit the unassigned variable in the anonymous function.\r\n\r\nExpected Result:\r\n\r\nThe first breakpoint should be hit and pressing 'Resume' should hit the next breakpoint.\r\n\r\nHere is the expected console log for the sample code:\r\n\r\n{code}\r\n[INFO] Global Variables Defined!\r\n[INFO] Anonymous Function Called!\r\n{code}", "attachment": [ { "id": "32063", "filename": "androiddebugger.log", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-26T20:42:00.000+0000", "size": 3598, "mimeType": "text/plain" }, { "id": "32064", "filename": "app.js", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-26T20:42:00.000+0000", "size": 188, "mimeType": "text/javascript" }, { "id": "32065", "filename": "console-log.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-26T20:42:00.000+0000", "size": 83, "mimeType": "text/plain" }, { "id": "32066", "filename": "iosdebugger.log", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-26T20:42:00.000+0000", "size": 1980, "mimeType": "text/plain" }, { "id": "32062", "filename": "MyProject.zip", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-26T20:42:00.000+0000", "size": 3122581, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Debugger: breakpoint at global unassigned variable declaration hits next statement instead", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 2.1.2.GA, 2.1.3.v20120925134611, 3.0.0.v20120925124913\r\nTitanium Studio: 2.1.2, 3.0.0.201209252419\r\nOS: Mountain Lion 10.8.2\r\nDevice: Android Emulator 2.3.3", "comment": { "comments": [ { "id": "423827", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-10T22:17:18.000+0000", "updated": "2017-07-10T22:17:18.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }