{ "id": "79525", "key": "TIMOB-5079", "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": "12086", "description": "", "name": "Sprint 2011-46", "archived": true, "released": true, "releaseDate": "2011-11-21" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2011-11-14T11:18:51.000+0000", "created": "2011-08-22T15:26:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "dr-list" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:39:13.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3. Bug\r\nh3. Problem.\r\n\r\nStudio Debugger doesn't step into functions that I loaded with 'require', nor does it stop at breakpoints set within those functions.\r\n\r\nh3.Reproducible steps:\r\n\r\n1.Run the code below.\r\n\r\nh3.Expected behavior\r\n\r\nCustomer wants to debug functions that are contained in .js files called with 'require'.\r\n\r\n\r\nh3.Sample Code:\r\n\r\n{code}\r\n// app.js\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'blue'\r\n});\r\n\r\nvar ui = require('ui'); \r\nvar button = Ti.UI.createButton({\r\n title: 'Test',\r\n top: 20,\r\n height: 50,\r\n width: 200\r\n});\r\nbutton.addEventListener('click', function(e){\r\n ui.alertIt('hi');\r\n});\r\nwin.add(button);\r\nwin.open();\r\n\r\n// ui.js\r\nexports.alertIt = function(e) {\r\n alert(e);\r\n};\r\n{code}\r\n\r\nh3. HelpDesk.\r\nAPP-899229", "attachment": [], "flagged": false, "summary": "iOS: Debugging functions loaded with require", "creator": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Emulator", "comment": { "comments": [ { "id": "172168", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Requires the resolution of pull request 647 and pull request 621 to begin work since these change require() behavior.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-10T10:11:14.000+0000", "updated": "2011-11-10T10:11:14.000+0000" }, { "id": "172553", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appears to be fixed by the pull requests listed in the ticket. Cannot reproduce as of 1.8.0.1.5457cb3, tested TiStudio debugger 1.0.7.201111111956 w/iPhone Sim 5.0.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-14T11:18:51.000+0000", "updated": "2011-11-14T11:18:51.000+0000" }, { "id": "414482", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:39:13.000+0000", "updated": "2017-03-21T21:39:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }