{ "id": "79159", "key": "TIMOB-4986", "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": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-02-06T17:43:46.000+0000", "created": "2011-08-11T10:18:47.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T20:52:47.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": "10207", "name": "Tooling" } ], "description": "It appears that you cannot debug into a Javascript module loaded with require.\r\n\r\nThe steps to reproduce are easy.\r\n\r\ncreate a module named foo.js and save it in Resources\r\n\r\n{code}\r\nexports.foo = function()\r\n{\r\n return 'bar';\r\n}\r\n{code}\r\n\r\nThen in app.js\r\n\r\n{code}\r\nvar f = require('foo');\r\n\r\nf.foo();\r\n{code}\r\n\r\n\r\nPlace breakpoint on the 'return bar' and attempt to debug and you'll never get into that piece of code.\r\n\r\nMost likely this is how we 'wrap and load' the exported code that prevents it from being debuggable. \r\n\r\nMy guess this bug also is the same on Android but I haven't verified that.\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Can't debug modules", "creator": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "189980", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "I think this one is no longer a problem. Please verify & close.", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-04-05T10:09:43.000+0000", "updated": "2012-04-05T10:09:43.000+0000" }, { "id": "342420", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed with the new debugger for 3.5.0", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-02-06T17:43:46.000+0000", "updated": "2015-02-06T17:43:46.000+0000" }, { "id": "415757", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed with reference to previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T20:52:47.000+0000", "updated": "2017-03-24T20:52:47.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }