{ "id": "112921", "key": "TIMOB-13586", "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": null, "resolutiondate": null, "created": "2013-04-16T01:50:30.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-3.1.0", "usability" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "27839", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "112925", "key": "TIMOB-13589", "fields": { "summary": "Debugger: using Alloy, Android has an unexpected behavior if setting a breakpoint next to a function declaration", "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": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2015-04-13T17:07:11.000+0000", "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" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "h5. Problem description\r\nAndroid and iOS behave in a different way when setting breakpoints on function declaration.\r\n\r\nSee sample code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'blue'\r\n});\r\n\r\nfunction test(){\r\n\talert('foobar');\r\n};\r\n\r\nvar view = Ti.UI.createView({\r\n\theight:200,\r\n\twidth:200,\r\n\tbackgroundColor:'orange'\r\n});\r\nview.addEventListener('click', function(){\r\n\ttest();\r\n});\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\nIf a breakpoint is set on line 5 ( function test(){ ) , on Android it actually breaks at line 6 after triggering the 'click' event on the view.\r\nOn iOS it breaks on line 5. \r\n\r\nIf setting breakpoints for both lines 5 and 6, on Android it only breaks once at line 6, while on iOS it breaks for both.\r\n\r\nIf setting breakpoints both on line 6, it works correctly as expected for both the platforms.\r\n", "attachment": [], "flagged": false, "summary": "Debugger: Android and iOS different behavior when setting a breakpoint on a function declaration", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.0.2 GA and 3.1.X\r\nTiStudio 3.0.2 GA (3.0.2.201302191606) and 3.1.0.v20130414163049", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }