{ "id": "79183", "key": "TIMOB-4989", "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": "12083", "description": "", "name": "Sprint 2011-43", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-05T16:51:14.000+0000", "created": "2011-08-11T16:38:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "dr-list", "module_debugger", "qe-testadded" ], "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": "2012-01-05T16:51:14.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": "Reproduction steps, using any app:\r\n\r\n- Install the ti.test module\r\n- Change the tiapp.xml for the project to reference the ti.test module\r\n- Set a breakpoint in app\r\n- Debug, and trigger the breakpoint\r\n\r\nRESULT:\r\n- Breakpoint is not triggered\r\n\r\nEXPECTED:\r\n- Breakpoint is hit\r\n\r\n\r\nThe solution is that because when we load modules (or install to device) we automatically encode javascript into the binary. This prevents the debugger from looking up information (on the filesystem) about which JS is being executed, and furthermore, all the line numbers are going to be wrong anyway due to JS compacting for the encoding process.\r\n\r\nSo, we'll probably need to stop encoding local resources when you're just linking a module.", "attachment": [ { "id": "22980", "filename": "breakpoint-basic.bkpt", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-20T13:46:36.000+0000", "size": 4006, "mimeType": "application/octet-stream" }, { "id": "22981", "filename": "debug_test.zip", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-20T13:46:36.000+0000", "size": 6787383, "mimeType": "application/zip" }, { "id": "22982", "filename": "Screen Shot 2011-09-20 at 1.40.23 PM.png", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-20T13:46:36.000+0000", "size": 383114, "mimeType": "image/png" } ], "flagged": false, "summary": "Debugging does not work with apps that have modules", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "163042", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This change had to be pulled out as it was not working on device.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-16T15:57:11.000+0000", "updated": "2011-08-16T15:57:11.000+0000" }, { "id": "164413", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed as expected on the iPhone Simulator.\nSDK:\nversion=1.8.0\ntimestamp=08/26/11 14:53\ngithash=8e978eb...\n", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-29T14:49:41.000+0000", "updated": "2011-08-29T14:49:41.000+0000" }, { "id": "166444", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This appears to be occurring again with both the iPhone 4.3 and 5 simulator. Tested with SDK 1.8.0v20110920000211 (version=1.8.0, timestamp=09/20/11 00:02, githash=b8e07c8...).\n\nI've attached the project and break points I was using. The app stays on the splash screen as expected, but debugger never connects and the variable values never appear. \n\nAfter a few seconds the simulator closes and the following appears in the console:\n\n[DEBUG] App Spec: specified by path /Users/avaghti/Documents/Titanium Studio Workspace/debug_test/build/iphone/build/Debug-iphonesimulator/debug_test.app\n[DEBUG] SDK Root: path=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk version=4.3 name=Simulator - iOS 4.3\n[DEBUG] using device family iphone\n[DEBUG] Session started\n[DEBUG] Session did end with error (null)\n[INFO] Application has exited from Simulator\n", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-20T13:43:38.000+0000", "updated": "2011-09-20T13:43:38.000+0000" }, { "id": "166485", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce on master. This isn't a bug related to debugging modules, either - it is a separate bug.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-21T05:18:37.000+0000", "updated": "2011-09-21T05:19:58.000+0000" }, { "id": "170348", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce in SDK 1.8.0.e69cc8f / TiStud 1.0.6.201110202348 / XCode 4.2 / iOS 5.0 SDK. Assuming previous fix is still good.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-25T10:05:13.000+0000", "updated": "2011-10-25T10:05:13.000+0000" }, { "id": "175311", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nOS: Mac OS X Lion\r\nTitanium Studio, build: 1.0.7.201112061404\r\nSDK build: 1.8.0.1.v20111207151125\r\nDevice: iOS Simulator (5.0)\r\n\r\nNote to QE: Need modulization for modules, not debugging. ", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-07T17:22:30.000+0000", "updated": "2011-12-07T17:22:30.000+0000" }, { "id": "178272", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Open to update label\r\n", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T16:50:53.000+0000", "updated": "2012-01-05T16:50:53.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }