{ "id": "79239", "key": "TIMOB-5979", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-03-26T20:21:44.000+0000", "created": "2011-08-15T09:12:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core", "supportTeam" ], "versions": [ { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T22:06:19.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": "h3. Feature request\r\n \r\nh3. The problem\r\n\r\nIn titanium studio, when an exception happens while debugging, the debugger breaks out, but there no messages to see the exception that caused the break.\r\n \r\nh3. Reproducible steps:\r\n \r\n1.Run the code below in debug mode.\r\n \r\nh3. Expected behavior\r\n\r\nWhen you run the application in debug mode customer expects to see a message of an exception.\r\n\r\nh3. Sample Code:\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n \r\n // create tab group\r\n var tabGroup = Titanium.UI.createTabGroup();\r\n \r\n \r\n //\r\n // create base UI tab and root window\r\n //\r\n var win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n });\r\n var tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n });\r\n \r\n var label1 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 1',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n });\r\n //Lines added to simulate the problem\r\n var a=b+1;\r\n label1=a;\r\n win1.add(label1);\r\n \r\n \r\n \r\n //fetching the xml data and puting into the table\r\n \r\n // create controls tab and root window\r\n //\r\n var win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n });\r\n var tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n });\r\n \r\n var label2 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 2',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n });\r\n \r\n win2.add(label2);\r\n \r\n \r\n \r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n \r\n \r\n// open tab group\r\ntabGroup.open();\r\n \r\n \r\n{code}\r\n \r\nh3. Helpdesk\r\nAPP-996717", "attachment": [], "flagged": false, "summary": "iOS: Unable to view the current exception in the Titanium Studio debugger", "creator": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacBook Pro OSX Version 10.9\r\nTitanium SDK 3.2.0GA, 3.2.1GA \r\nCLI 3.2.0,3.2.1\r\niOS -Simulator -iphone Retina 3.5 inch/ios 7.0.3\r\nTitanium Studio build: 3.2.0.201312191547\r\n", "comment": { "comments": [ { "id": "162848", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Max, thoughts?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-15T12:20:46.000+0000", "updated": "2011-08-15T12:20:46.000+0000" }, { "id": "163062", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Stephen, iOS debugger needs to report 'exception' variable on top stack frame when suspend caused by an exception. The variable flags should be 'e' and optionally 'w' is you could allow user to change or drop the exception (like Firefox does).\nHere is Firefox related code: https://github.com/aptana/studio3/blob/development/browser.extensions/debugger.aptana.com/content/aptanadebugger/aptanaDebugger.js#L1642\n\nSame should apply to Android, if applicable.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-16T16:34:58.000+0000", "updated": "2011-08-16T16:34:58.000+0000" }, { "id": "163606", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Max, Marshall requests that we update the protocol wiki to describe this behavior. Once we have that, we'll file bugs against the various platforms.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-22T08:22:52.000+0000", "updated": "2011-08-22T08:22:52.000+0000" }, { "id": "163607", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Francisco, can you see if this also happens on Android?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-22T08:23:40.000+0000", "updated": "2011-08-22T08:23:40.000+0000" }, { "id": "171388", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Debugger protocol wiki has beed updated regarding the exception handling.\r\nhttp://wiki.appcelerator.org/display/tis/Debugger+Protocol#DebuggerProtocol-Specialvariables", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-03T13:14:50.000+0000", "updated": "2011-11-03T13:14:50.000+0000" }, { "id": "195186", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2, when running the iOS simulator in 'normal' mode, it prints the issue in the console. But if you run it in debug mode, nothing is shown, no exception thrown.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-17T11:30:06.000+0000", "updated": "2012-05-17T11:30:06.000+0000" }, { "id": "298850", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving as cannot reproduce. Needs confirmation by QE before closing.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-26T20:21:44.000+0000", "updated": "2014-03-26T20:21:44.000+0000" }, { "id": "414534", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:06:19.000+0000", "updated": "2017-03-21T22:06:19.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }