{ "id": "111773", "key": "TIMOB-13251", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15396", "description": "2013 Sprint 07 Core", "name": "2013 Sprint 07 Core", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-28T21:48:38.000+0000", "created": "2013-03-27T21:02:17.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-3.1.0" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "27088", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "111868", "key": "TISTUD-3981", "fields": { "summary": "Alloy Debugger: wrong behavior setting breakpoints on functions under Android", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T18:54:03.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": "h5. Problem description\r\nDebugger is not correctly handling a breakpoint set for a function in the controller .js file\r\n\r\nh5. Steps to reproduce\r\nAndroid OS tested: 2.3.6 Nexus One, Android emulator\r\n\r\nSee the sample attached.\r\n\r\nh6. index.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nh6. index.js\r\n{code}\r\nfunction doClick(e) { \r\n\t\r\n alert($.label.text);\r\n\r\n}\r\n\r\n$.index.open();\r\n{code}\r\n\r\n1. Set a BreakPpoint at line 3 for the'alert($.label.text);'\r\n2. Debug the App on Android \r\n\r\nResult: App starts but the breakpoint is immediately triggered before displaying the Window (so just the splashscreen is displayed) and without having to click on the label.\r\n\r\nFrom the Debug tab, it looks the behavior is wrong and that actually the wrong line is highlighted, focusing on the 'doClick() function' instead of the 'alert' function inside.\r\n\r\nSee the two screenshots, one for Android (wrong behavior), one for iOS (correct one, being triggered only when clicking on the sample 'label' for displaying the alert, not when starting the App).\r\n\r\n3. Click to go past the breakpoint. Manually click on the app label to trigger the alert again.\r\nResult: breakpoint is now ignored. Alert is being displayed.\r\n\r\n\r\nAttaching Debugger log, where there is this line (not present in the iOS debugger log):\r\n{code}\r\n[57:33.986] Recv: >1364417853985*!unknown option <\r\n{code}\r\n\r\nAttaching Android build.log too", "attachment": [ { "id": "36696", "filename": "androidAlloyDebugger.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T21:02:17.000+0000", "size": 43347, "mimeType": "image/png" }, { "id": "36698", "filename": "androiddebugger.log", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T21:02:17.000+0000", "size": 3133, "mimeType": "text/plain" }, { "id": "36699", "filename": "build.log", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T21:20:36.000+0000", "size": 18399, "mimeType": "text/plain" }, { "id": "36697", "filename": "iOSalloyDebugger.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T21:02:17.000+0000", "size": 37276, "mimeType": "image/png" } ], "flagged": false, "summary": "Alloy Debugger: wrong behavior setting breakpoints on functions under Android", "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": "TiSTUD: 3.1.0.201303252247\r\nAlloy: 1.1.0-alpha\r\nTiSDK: 3.1.0.v20130325155928\r\nAndroid OS\r\nMac OS X 10.8.2", "comment": { "comments": [ { "id": "244381", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The breakpoint inside the function is acting as if the breakpoint is next to the function.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T21:05:19.000+0000", "updated": "2013-03-27T21:05:19.000+0000" }, { "id": "244543", "author": { "name": "sgibly", "key": "sgibly", "displayName": "Shalom Gibly", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moved to TIMOB - Seems to be a bug in the platform.", "updateAuthor": { "name": "sgibly", "key": "sgibly", "displayName": "Shalom Gibly", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-28T21:14:45.000+0000", "updated": "2013-03-28T21:14:45.000+0000" }, { "id": "244548", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/4050", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-28T21:28:51.000+0000", "updated": "2013-03-28T21:28:51.000+0000" }, { "id": "244550", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Line numbers in required modules are off by 1.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-28T21:30:03.000+0000", "updated": "2013-03-28T21:30:03.000+0000" }, { "id": "410330", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T18:54:03.000+0000", "updated": "2017-03-09T18:54:03.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }