{ "id": "65637", "key": "TIMOB-4163", "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": "2011-05-20T13:08:58.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "RTN", "debugger", "step_into", "suspend" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-09T19:51:38.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Try to manually suspend a thread (by hitting the \"Pause\" button) when debugging an application with TiStudio. The app should suspend once Javascript code is executed again.", "attachment": [], "flagged": false, "summary": "Android: Debugger: Manual suspend is not implemented", "creator": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Android Emulator 2.1 with May 19 2011 16:19 r592c8e01", "comment": { "comments": [ { "id": "134065", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving to critical since it's MUST FIX", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-20T15:03:03.000+0000", "updated": "2011-05-20T15:03:03.000+0000" }, { "id": "134131", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hrmm.. \"Step into\" seems to be enabled correctly for me here. The breakpoint is supposed to be set on the line where the function \"cfa()\" is called, correct? When the debugger suspends, I go directly into that function when I click on \"step in\"", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-24T00:11:53.000+0000", "updated": "2011-05-24T00:11:53.000+0000" }, { "id": "158277", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To test this:\r\n\r\nDebug an android project in TiStudio, make sure the project is targeting the MobileSDK w/ these fixes. Set a breakpoint anywhere, and make sure it hits once. Once it hits, resume, and then you can click on any thread under the App, and hit the manual \"Suspend\" (Pause) button. The next time the app goes back to javascript code, the debugger should suspend.", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-29T14:45:56.000+0000", "updated": "2011-06-29T14:45:56.000+0000" }, { "id": "158486", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Bill's test case with a tabbed application:\r\n\r\n{code:title=app.js}\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\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar 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\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'Click first',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\nfunction clicker() {\r\n\tTi.API.info(\"Clickity do da\");\r\n\tTi.API.info(\"Clickity day\");\r\n}\r\nlabel1.addEventListener('click', clicker);\r\n\r\nwin1.add(label1);\r\n\r\nvar label2;\r\nwin1.add ( label2 = Ti.UI.createLabel({\r\n\tbottom: 5, left: 0, right: 0, backgroundColor: 'green', color: 'white', text: 'click later'\r\n}));\r\nfunction clicker2() {\r\n\tTi.API.info('clicker 2 xxx');\r\n\tTi.API.info('clicker 2 yyy');\r\n}\r\nlabel2.addEventListener('click', clicker2);\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.open();\r\n{code}\r\n\r\nSteps:\r\n\r\n1) Put a breakpoint in \"clicker()\", which is an event handler that gets run when you click on the \"click first\" label.\r\n2) Run the app in debug mode.\r\n3) When the app has opened, click the \"click first\" label. A breakpoint should be hit.\r\n4) Resume the app.\r\n5) Click Pause (suspend).\r\n6) Click the bottom label titled \"click later\".\r\n\r\nExpected: Suspend in clicker2(), an event handler for the click event of the second (bottom) label.\r\n\r\nActual: Doesn't suspend.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-07-05T09:45:46.000+0000", "updated": "2011-07-05T09:48:22.000+0000" }, { "id": "158929", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.2.v20110706211037 with Debugger test and the attached test case.", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-07T11:14:45.000+0000", "updated": "2011-07-07T11:14:45.000+0000" }, { "id": "178762", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening bug. Bug still persists on:\r\n\r\nSDK build: 1.8.0.1\r\nRuntime: V8\r\nTitanium Studio, build: 1.0.7.201112281340\r\nOS: Mac OS X Lion, Windows 7, Linux 10.04\r\n\r\nNote: Bug does NOT persist on Rhino when running the attached test case and test case 1023 from [Debugger Test Plan|https://wiki.appcelerator.org/display/tp/Debugger+Test+Plan].", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-10T13:58:05.000+0000", "updated": "2012-01-10T13:58:05.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }