{ "id": "112065", "key": "ALOY-597", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15395", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-04-02T20:52:15.000+0000", "created": "2013-04-02T01:30:39.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "15271", "description": "Alloy 1.1.0, concurrent with SDK 3.1.0", "name": "Alloy 1.1.0", "archived": false, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "27268", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "112098", "key": "TISTUD-4074", "fields": { "summary": "Alloy: Debugger ignore breakpoints and stack frame under Windows", "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 } } } }, { "id": "27249", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "112061", "key": "TIMOB-13306", "fields": { "summary": "Android: App kills Android Debugger session on Windows", "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 } } } }, { "id": "27305", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "112142", "key": "TISTUD-4095", "fields": { "summary": "Android: App kills Android Debugger session on Windows when auto launching the app", "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": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-04-03T17:49:04.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": "12331", "name": "Titanium Studio" } ], "description": "h5. Problem description\r\nUnder Windows, setting a breakpoint on the original controller source did not cause the app to break where expected.\r\nSetting a breakpoint on the generated controller source works.\r\n\r\n\r\nh5. Steps to reproduce\r\n\r\n\r\nh6. Sample 'index.js'\r\n{code}\r\nfunction doClick(e) { \r\n alert($.label.text + a);\r\n}\r\n\r\nvar a = 5;\r\n\r\n$.index.open();\r\n{code}\r\n\r\nAttached the 'Resources/alloy/controllers/index.js' generated file.\r\n\r\n1) Set a Breakpoint at line 2 ( alert($.label.text + a); )\r\n2) Debug for Android\r\nResult: Breakpoints are ignored\r\n\r\n3) Check the source map with command (from the build folder):\r\n{code}\r\n$ alloy debugger generated \"map/Resources/alloy/controllers/index.js.map\" --line 2 --column 6 --source \"app/alloy/controllers/index.js\"\r\n{code}\r\n\r\nExpected result: \r\n{code}\r\n{line: 3, column: 9}\r\n{code}\r\n\r\nActual Result:\r\n{code}\r\n{ line: 35, column: 17 }\r\n{code}\r\n\r\n", "attachment": [ { "id": "36921", "filename": "index.js", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T01:42:16.000+0000", "size": 1189, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Windows: Debug source map reports incorrect line", "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.1.0.v20130401102449\r\nTiStudio 3.1.0.201304010847\r\nOS: Windows 7 x64\r\nAlloy: 1.1.0-alpha\r\nAndroid Galaxy Nexus 4.1.1", "comment": { "comments": [ { "id": "245241", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't reproduce this with the given code. This same code maps correctly for me on both Mac and Windows giving expected results for a number of different \"generated\" tests on my end. \n\nYou might be having an error because you are using an invalid filename as for the --source option. \"app/alloy/controllers/index.js\" would never exist. I think you mean \"app/controllers/index.js\". This is likely the root of the issue. Please confirm and close if this is true. ", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T20:01:56.000+0000", "updated": "2013-04-02T20:01:56.000+0000" }, { "id": "245261", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirming it was an error in the command (path and use '\\' instead of '/')\n\nUsing the sample code and launching the command: \n$ alloy debugger generated \"build\\map\\Resources\\alloy\\controllers\\index.js.map\" --line 2 --column 6 --source \"app\\controllers\\index.js\"\n\ncorrectly returns:\n{ line: 3, column: 8 }\n\n\nClosing as invalid and opening a new one against Studio for the debugger isse.\n\n", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T20:51:43.000+0000", "updated": "2013-04-02T20:51:43.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }