{ "id": "122157", "key": "TIMOB-15703", "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": "15707", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15709", "description": "2013 Sprint 23 Core", "name": "2013 Sprint 23 Core", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-23T01:55:12.000+0000", "created": "2013-11-06T19:30:37.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "debugger", "qe-3.2.0", "qe-closed-3.2.0", "qe-testadded", "regression" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "33130", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "122220", "key": "TISTUD-5674", "fields": { "summary": "iOS: Debugger - Relaunching the iOS debugger will return \"Socket allocation error\"", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-02-25T18:19:32.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": "h5. Details\r\nDebugging does not work on iOS simulators and iOS devices.\r\n\r\n*This is a regression since this worked with 3.1.3.GA stack.*\r\n\r\nh5. To reproduce\r\n1. Create a default Titanium or Alloy project\r\n2. Add a break point to the following places:\r\n\r\nIn the default Alloy app, add break point in index.js at line 2 (e.g. alert($.label.text))\r\nIn the default Titanium app, add this code and add a break point at the alert\r\n{code}\r\nlabel1.addEventListener('click', function(e){\r\n // break point on the alert line\r\n\talert('clicked');\r\n});\r\n{code}\r\n\r\n3. Next, debug to either iOS simulator or iOS device\r\n\r\nh5. Actual result\r\n\r\nDebugging to iOS simulator: if you click on the 'I am Window 1' label, studio will not hit that break point.\r\nDebugging to iOS device: Debug on iOS device dialog will stall (see debug_device.png) and not app will appear on device.", "attachment": [ { "id": "43717", "filename": "debug_device.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-06T20:02:49.000+0000", "size": 200711, "mimeType": "image/png" }, { "id": "43716", "filename": "log.txt", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-06T19:30:37.000+0000", "size": 1978, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Debugger - Debugger does not work with iOS", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac osx 10.9 Mavericks\r\nXcode: 5.0, 5.0.1\r\nTi CLI: 3.2.0 master (6ca7912ffe94d9db5e684bbfa15208ef00827094)\r\nTitanium Studio, build: 3.2.0.201311060354\r\nTitanium SDK, build: 3.2.0.v20131105162443", "closedSprints": [ { "id": 22, "state": "closed", "name": "2013 Sprint 23", "startDate": "2013-11-04T23:11:21.521Z", "endDate": "2013-11-16T04:11:00.000Z", "completeDate": "2013-11-21T16:47:18.248Z" } ], "comment": { "comments": [ { "id": "278554", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pushed the fix to development branch.\r\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T00:46:24.000+0000", "updated": "2013-11-07T00:46:24.000+0000" }, { "id": "278728", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening ticket. Debugger still does not work with iOS.\r\n\r\nTested on:\r\n\r\nTitanium Studio, build: 3.2.0.201311070117\r\nSDK build: 3.2.0.v20131107104043\r\nTi CLI: 3.2.0 master (4c816f21d7d9360659d77e9a6a994992ef880b72)\r\nXcode: 5.0.1\r\nDevice: iphone 5 (6.1.3), iphone 5s (7.0.2), iOS Simulator (6.1, 7.0.3)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T22:50:25.000+0000", "updated": "2013-11-07T22:50:47.000+0000" }, { "id": "279025", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "This is working for me with iOS simulators. I tried iPhone Retina 4-inch and iPad Retina 64-bit with both a Titanium project and a default Alloy one. I did not try on-device debugging yet.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2013-11-11T21:20:57.000+0000", "updated": "2013-11-11T21:20:57.000+0000" }, { "id": "279137", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "So, I'm seeing broken behavior on the device. I tried debugging straight to my device. There's a couple issues:\r\n- The progress dialog never advances. We may need to update the strings we're sniffing for again\r\n- It looks like the CLI process exits once the app gets installed to the device, so I'm assuming that means the debug session gets cut off then?", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2013-11-12T15:11:31.000+0000", "updated": "2013-11-12T15:11:31.000+0000" }, { "id": "279141", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "I can easily fix the output sniffing so the progress moves forward on the dialog, but I can't seem to get the debugger to connect at all. It just keeps trying to find the device and connect and never does.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2013-11-12T15:56:40.000+0000", "updated": "2013-11-12T15:56:40.000+0000" }, { "id": "279202", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "I've spent a ton of time on this, and I just cannot get debug on device to work. I never get the initial handshake UDP packet sent from the app over to studio's debugger. I have no idea why not. Hopefully someone has some knowledge of how to debug this to see if the app is sending the UDP packet and doing what it's supposed to do?", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2013-11-12T20:23:42.000+0000", "updated": "2013-11-12T20:23:42.000+0000" }, { "id": "279210", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Related: I noticed we gather the list of the host machine (studio is on) IPs and set them on the launch config when we generate it. I modified our launching behavior to gather this listing just before we call to build and pass it along to the build/app. This way it makes it more likely to have a good/updated set of IPs for the app to send the UDP packets to.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2013-11-12T20:55:05.000+0000", "updated": "2013-11-12T20:55:05.000+0000" }, { "id": "279630", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/4972", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-14T21:57:15.000+0000", "updated": "2013-11-14T21:57:15.000+0000" }, { "id": "280438", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When placing a breakpoint in the eventListener for label1 from the attached code, the breakpoint is ignored when clicking on the label.\r\n\r\nOccurs with:\r\nSDK 3.2.0.v20131119142443\r\nTitanium Studio, build: 3.2.0.201311200322", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-21T00:11:58.000+0000", "updated": "2013-11-21T00:11:58.000+0000" }, { "id": "280854", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Unable to reproduce as Praveen, Eric, and Hieu as my witness.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-23T01:55:12.000+0000", "updated": "2013-11-23T01:55:12.000+0000" }, { "id": "284051", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified I was able to debug on simulator and device.\n\nTested on:\n\nAppcelerator Studio, build: 3.2.0.201312101708\nSDK build: 3.2.0.v20131210191510\nCLI: 3.2.0-cr3\nAlloy: 1.3.0-cr\nXcode: 5.0.2\nDevice: iphone simulator (6.1, 7.0.3), iphone 5s (7.0), iphone 5 (6.1.3)\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-12T19:30:17.000+0000", "updated": "2013-12-12T19:30:17.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }