{ "id": "145144", "key": "TIMOB-18615", "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": [], "resolution": null, "resolutiondate": null, "created": "2015-02-25T19:13:19.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "core", "debugger", "qe-3.5.1" ], "versions": [ { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" } ], "issuelinks": [ { "id": "46231", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "145147", "key": "TIMOB-18616", "fields": { "summary": "iOS Debugger: Breakpoints not recognized on files that are required()", "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 } } } }, { "id": "46230", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "102727", "key": "TIMOB-11307", "fields": { "summary": "Android Debugger: Breakpoints not recognized on files that are added to app.js using URL", "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": null, "updated": "2018-02-28T19:54:48.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Files added in a project with 'url' are not allowing break points to be hit. This is not a regression as I also see it with 3.5.0.GA.\r\n\r\n*Steps To Reproduce*:\r\n1. create app with code below.\r\n2. Put a breakpoint on any line in newWin.js file.\r\n3. Run the app.\r\n4. Click Test button.\r\n\r\n*Actual*: Breakpoint is not recognized in newWin File.\r\n\r\n*Expected*: Breakpoint must get hit.\r\n\r\napp.js\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'blue'\r\n});\r\n \r\n//var ui = require('ui');\r\n\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 var newWin = Ti.UI.createWindow({url:'newWin.js'});\r\nnewWin.open();\r\n});\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n\r\nnewWin.js\r\n{code}\r\nvar win = Ti.UI.currentWindow;\r\nwin.backgroundColor = 'white';\r\nvar x = 1;\r\nTi.API.info(\"hi\");\r\n{code}\r\n\r\n*Notes*:\r\nSee related ticket. Looks like this was fixed for Android in the past and iOS was verified. Possibly broke since then.", "attachment": [], "flagged": false, "summary": "iOS Debugger: Breakpoints not recognized on files that are added to app.js using URL", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.5.1.v20150223154830 & 3.5.0.GA\r\nStudio 3.4.2.201502181619\r\nCLI 3.4.2-alpha\r\nXcode 6.2b5\r\n", "comment": { "comments": [ { "id": "357347", "author": { "name": "danielroth", "key": "danielroth", "displayName": "Daniel Roth", "active": true, "timeZone": "Europe/Berlin" }, "body": "Why isn't this issue getting more attention? How do you expect developers to stick around when we can't debug?", "updateAuthor": { "name": "danielroth", "key": "danielroth", "displayName": "Daniel Roth", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-07-09T11:53:56.000+0000", "updated": "2015-07-09T11:53:56.000+0000" }, { "id": "357636", "author": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please resolve this, we have to go back to run on SDK 3.4.1 if we need to debug any code which is ridiculous, we should be able to debug on the latest SDK, some code breaks between these SDKS so keeping the build working between debug and live is a nightmare", "updateAuthor": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-14T11:29:41.000+0000", "updated": "2015-07-14T11:29:41.000+0000" }, { "id": "357641", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FWIW, we will likely implement TIMOB-16985 in the near future and focus on fixing the regression in TIMOB-18616 instead. Is there a reason you can't switch to using require?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-14T13:46:54.000+0000", "updated": "2015-07-14T13:46:54.000+0000" }, { "id": "357749", "author": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "body": " I am using require, breakpoints / debugging still don't work in alloy projects above SDK 3.4.1\r\n\r\nNot sure if related but requires used in alloy.js\r\nOther views and controllers created add hoc on an action (i.e. button click invokes new controller with view)", "updateAuthor": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-15T08:07:21.000+0000", "updated": "2015-07-15T08:07:21.000+0000" }, { "id": "371431", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi, I just tried to reproduce and the breakpoint is hit as expected. This is my environment: \r\n\r\nTi SDK 5.1.0.GA \r\nStudio 4.4.0 \r\nIOS 9.1 / Xcode 7.1 \r\nNode.js \r\nNode.js Version = 4.2.2 \r\nnpm Version = 2.14.7\r\nAppcelerator CLI \r\nInstaller = 4.2.2 \r\nCore Package = 5.1.0\r\nTitanium CLI \r\nCLI Version = 5.0.5 \r\nnode-appc Version = 0.2.31\r\n\r\nBtw, take note that Ti.Window.url property is deprecated and will be removed in the next release.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-25T06:41:17.000+0000", "updated": "2015-11-25T06:41:17.000+0000" }, { "id": "371442", "author": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have since found this seems to be an issue when there is a space in the application name, if i remove the space it works as expected, if there a space in the app name it does not hit any breakpoints on iOS only.", "updateAuthor": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-25T09:36:50.000+0000", "updated": "2015-11-25T09:36:50.000+0000" }, { "id": "371443", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I believe the space issue has been fixed recently hence this ticket just have been fixed then", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-25T10:17:30.000+0000", "updated": "2015-11-25T10:17:30.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }