{ "id": "104360", "key": "TIMOB-11661", "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": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-10-11T04:29:55.000+0000", "created": "2012-11-02T23:35:47.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "debugger", "debugger-ios", "qe-ios100112" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "22521", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "104361", "key": "TIMOB-11662", "fields": { "summary": "Android: Debugger: can't step-into win.open to view win.url javascript file", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-10-11T04:30:01.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": "Can't step-into win.open() to view win.url javascript file. However any breakpoints in the file are hit.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code in Debug mode:\r\n\r\napp.js\r\n\r\n{code}\r\n/* Ti.include */\r\n\r\nTi.API.info('Ti.include(\\'module.js\\')');\r\n\r\nTi.include('module.js');\r\n\r\n/* require */\r\n\r\nTi.API.info('require(\\'module\\')');\r\n\r\nrequire('module');\r\n\r\n/* Ti.UI.Window.url */\r\n\r\nTi.API.info('win.url.open()');\r\n\r\nvar win = Ti.UI.createWindow({\r\n\turl : 'module.js',\r\n\tbackgroundColor : 'red'\r\n});\r\n\r\nwin.open();\r\n\r\n/* alert */\r\n\r\nalert('alert');\r\n{code}\r\n\r\nmodule.js\r\n\r\n{code}\r\n/* console */\r\n\r\nif(Ti.Platform.osname != 'android') // TIMOB-11294 - Android: console: log functions fail in commonjs require\r\n{\r\n\tconsole.log('console LOG');\r\n\tconsole.log(['console LOG', 'ARG1', 'ARG2']);\r\n\t \r\n\tconsole.debug('console DEBUG');\r\n\tconsole.debug(['console DEBUG', 'ARG1', 'ARG2']);\r\n\t \r\n\tconsole.info('console INFO');\r\n\tconsole.info(['console INFO', 'ARG1', 'ARG2']);\r\n\t \r\n\tconsole.warn('console WARN');\r\n\tconsole.warn(['console WARN', 'ARG1', 'ARG2']);\r\n\t\r\n\tconsole.error('console ERROR');\r\n\tconsole.error(['console ERROR', 'ARG1', 'ARG2']);\r\n}\r\nelse\r\n{\r\n\tTi.API.info('TIMOB-11294 - Android: console: log functions fail in commonjs require');\r\n}\r\n\r\n/* Ti.API */\r\n \r\nTi.API.trace('Ti.API TRACE');\r\nTi.API.trace(['Ti.API TRACE', 'ARG1', 'ARG2']);\r\n \r\nTi.API.debug('Ti.API DEBUG');\r\nTi.API.debug(['Ti.API DEBUG', 'ARG1', 'ARG2']);\r\n \r\nTi.API.info('Ti.API INFO');\r\nTi.API.info(['Ti.API INFO', 'ARG1', 'ARG2']);\r\n \r\nTi.API.warn('Ti.API WARN');\r\nTi.API.warn(['Ti.API WARN', 'ARG1', 'ARG2']);\r\n \r\nTi.API.error('Ti.API ERROR');\r\nTi.API.error(['Ti.API ERROR', 'ARG1', 'ARG2']);\r\n \r\n/* Ti.API.log */\r\n \r\nTi.API.log('TRACE', 'Ti.API.log TRACE');\r\nTi.API.log('TRACE', ['Ti.API.log TRACE', 'ARG1', 'ARG2']);\r\n \r\nTi.API.log('DEBUG', 'Ti.API.log DEBUG');\r\nTi.API.log('DEBUG', ['Ti.API.log DEBUG', 'ARG1', 'ARG2']);\r\n \r\nTi.API.log('INFO', 'Ti.API.log INFO');\r\nTi.API.log('INFO', ['Ti.API.log INFO', 'ARG1', 'ARG2']);\r\n \r\nTi.API.log('WARN', 'Ti.API.log WARN');\r\nTi.API.log('WARN', ['Ti.API.log WARN', 'ARG1', 'ARG2']);\r\n \r\nTi.API.log('ERROR', 'Ti.API.log ERROR');\r\nTi.API.log('ERROR', ['Ti.API.log ERROR', 'ARG1', 'ARG2']);\r\n \r\nTi.API.log('LOG', 'Ti.API.log LOG');\r\nTi.API.log('LOG', ['Ti.API.log LOG', 'ARG1', 'ARG2']);\r\n \r\n/* Ti.iOS.API */\r\n \r\nif(Ti.Platform.osname == 'iphone' || Ti.Platform.osname == 'ipad')\r\n{\r\n Ti.API.timestamp('Ti.API TIMESTAMP');\r\n Ti.API.timestamp(['Ti.API TIMESTAMP', 'ARG1', 'ARG2']);\r\n}\r\n{code}\r\n\r\n2. Add a breakpoint near the beginning and step-over unti you hit win.open();\r\n3. Step into win.open();\r\n\r\nActual Result:\r\n\r\nSkips over win.url javascript file. There seems to be no way to debug into this file without pre-existing breakpoints in the file.\r\n\r\nExpected Result:\r\n\r\nStepping into win.open() seems like it should hit the first line of the win.url javascript file ('module.js').", "attachment": [], "flagged": false, "summary": "iOS: Debugger: can't step-into win.open to view win.url javascript file", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 3.0.0.201210291448\r\nTitanium SDK: 3.0.0.v20121030170824\r\nOS: Mountain Lion 10.8.2\r\nDevices: Android Emulator 2.2, iPhone Simulator 6.0\r\nXcode: 4.5.1\r\nTitanium CLI: disabled", "closedSprints": [ { "id": 597, "state": "closed", "name": "2016 Sprint 06 SDK", "startDate": "2016-03-12T01:30:59.982Z", "endDate": "2016-03-26T00:30:00.000Z", "completeDate": "2016-03-28T03:38:09.726Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "371807", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "I am still able to reproduce this error using the following components: \r\n{code:java}\r\nMac OSX El Capitan: 10.11.1 (15B42)\r\nTi SDK: 5.2.0.v20151201075557\r\nAppc NPM: 4.2.2\r\nAppc CLI: 5.1.0\r\nXcode 7.1(7B91b)\r\nNode v4.2.2\r\n{code}\r\n\r\nAttempting to step into win.open() does not produce the expected result.", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-12-01T21:42:19.000+0000", "updated": "2015-12-01T21:42:19.000+0000" }, { "id": "379897", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello, the url property was deprecated in 3.6.0 see [here|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-url] which is why the debugger function to step in to a url open call was never fixed and re-added. Closing as invalid.", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-16T18:12:01.000+0000", "updated": "2016-03-16T18:12:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }