{ "id": "155280", "key": "TIMOB-20503", "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": "10000", "description": "", "name": "Done" }, "resolutiondate": "2018-03-27T09:02:00.000+0000", "created": "2016-03-02T16:18:57.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [], "assignee": null, "updated": "2018-08-06T17:34:44.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": [], "description": "h3. Steps to Reproduce\n-place breakpoints\n-click debug view\n-select 'debug' from dropdown menu next to green execute button\n\nh3. Actual Result\napplication executes all the way through without stopping at any breakpoints\n\nh3. Expected Result\nappliction should stop at breakpoint and not continue until specified", "attachment": [ { "id": "58393", "filename": ".log", "author": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-02T16:18:59.000+0000", "size": 2635286, "mimeType": "text/plain" }, { "id": "58394", "filename": "diagnostic4361060220844125777.log", "author": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-02T16:19:05.000+0000", "size": 58932, "mimeType": "text/plain" } ], "flagged": false, "summary": "debugging not working for IOS or Android on my machine", "creator": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 1018, "state": "closed", "name": "2018 Sprint 07 SDK", "startDate": "2018-03-25T21:59:36.637Z", "endDate": "2018-04-08T21:59:00.000Z", "completeDate": "2018-04-08T17:55:14.467Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "378491", "author": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "body": "is this a known issue or am I an exception? Any quick work-arounds?", "updateAuthor": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-02T18:39:29.000+0000", "updated": "2016-03-02T18:40:06.000+0000" }, { "id": "378524", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~mkellogg91@gmail.com] we haven't received any issues about debugger. What you can help us do is give us a reproducible case, as well as the environment you have? and whether it's just simulator, or device etc.? as much info as you can then we can pinpoint the exact issue you are facing.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-03T03:02:44.000+0000", "updated": "2016-03-03T03:02:44.000+0000" }, { "id": "378576", "author": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "body": "All of my versioning information is in the diagnostic log above. I will tell you that all of my development is done on emulators. IOS Simulator and I primarily use google nexus 10 - api 21, and google nexus 5 - api 21 for development. the steps I take to run debugging is listed above in the description, but it just runs past the breakpoints without stopping at all.", "updateAuthor": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-03T13:49:42.000+0000", "updated": "2016-03-03T13:49:42.000+0000" }, { "id": "378731", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~mkellogg91@gmail.com] Can you attach ios debugger log file. \r\nHere you can find.\r\n\r\n{code}\r\n/.metadata/.plugins/com.appcelerator.titanium.ios.core/logs/iosdebugger.log \r\n{code}", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-04T02:39:06.000+0000", "updated": "2016-03-04T02:39:06.000+0000" }, { "id": "378769", "author": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "body": "Here is what I found in the log file you asked for:\r\n\r\n{code}\r\nLogger started at: Wednesday, March 2, 2016 11:26:20 AM EST\r\nComponent: com.appcelerator.titanium.ios.core\r\nVersion: 1.0.0.1455692286\r\n[26:20.592] Sent: >21*1456935980592*version<\r\n[26:20.593] Recv: >1456935980592*2*5.1.2<\r\n[26:20.594] Sent: >36*1456935980593*option*monitorXHR*true<\r\n[26:20.594] Recv: >1456935980593<\r\n[26:20.594] Sent: >45*1456935980594*option*suspendOnFirstLine*false<\r\n[26:20.595] Recv: >1456935980594<\r\n[26:20.595] Sent: >46*1456935980595*option*suspendOnExceptions*false<\r\n[26:20.595] Recv: >1456935980595<\r\n[26:20.595] Sent: >42*1456935980596*option*suspendOnErrors*false<\r\n[26:20.595] Recv: >1456935980596<\r\n[26:20.595] Sent: >43*1456935980597*option*suspendOnKeywords*true<\r\n[26:20.595] Recv: >1456935980597<\r\n[26:20.596] Sent: >45*1456935980598*option*bypassConstructors*false<\r\n[26:20.596] Recv: >1456935980598<\r\n[26:20.596] Sent: >45*1456935980599*option*stepFiltersEnabled*false<\r\n[26:20.596] Recv: >1456935980599<\r\n[26:20.596] Sent: >30*1456935980600*detailFormatters<\r\n[26:20.596] Recv: >1456935980600<\r\n[26:20.596] Sent: >20*1456935980601*enable<\r\n[26:20.597] Recv: >1456935980601<\r\n[26:20.623] Recv: >threads*created*0*kroll$1<\r\n[26:20.624] Recv: >log*out*[DEBUG] Loading: /Users/michael.kellogg/Library/Developer/CoreSimulator/Devices/298F2E61-EB53-4F7F-9F8E-81E01C41227F/data/Containers/Bundle/Application/127FF10D-E5C2-48C4-A9F9-C04804A1F49A/K2M_App.app/app.js, Resource: app_js<\r\n[26:20.624] Recv: >scripts*created*1|app:/app.js||1|3<\r\n[26:20.625] Recv: >resumed*0*started<\r\n[26:20.625] Recv: >log*out*[DEBUG] Loading: /Users/michael.kellogg/Library/Developer/CoreSimulator/Devices/298F2E61-EB53-4F7F-9F8E-81E01C41227F/data/Containers/Bundle/Application/127FF10D-E5C2-48C4-A9F9-C04804A1F49A/K2M_App.app/alloy.js, Resource: alloy_js<\r\n[26:20.626] Recv: >scripts*created*2|app:/alloy.js||1|297<\r\n[26:20.627] Recv: >log*out*[DEBUG] Loading: /Users/michael.kellogg/Library/Developer/CoreSimulator/Devices/298F2E61-EB53-4F7F-9F8E-81E01C41227F/data/Containers/Bundle/Application/127FF10D-E5C2-48C4-A9F9-C04804A1F49A/K2M_App.app/alloy/underscore.js, Resource: alloy/underscore_js<\r\n[26:20.630] Recv: >scripts*created*3|app:/alloy/underscore.js||1|1344<\r\n[26:20.632] Recv: >log*out*[DEBUG] Loading: /Users/michael.kellogg/Library/Developer/CoreSimulator/Devices/298F2E61-EB53-4F7F-9F8E-81E01C41227F/data/Containers/Bundle/Application/127FF10D-E5C2-48C4-A9F9-C04804A1F49A/K2M_App.app/alloy/backbone.js, Resource: alloy/backbone_js<\r\n[26:20.634] Recv: >scripts*created*4|app:/alloy/backbone.js||1|1433<\r\n[26:20.635] Recv: >log*out*[DEBUG] Loading: /Users/michael.kellogg/Library/Developer/CoreSimulator/Devices/298F2E61-EB53-4F7F-9F8E-81E01C41227F/data/Containers/Bundle/Application/127FF10D-E5C2-48C4-A9F9-C04804A1F49A/K2M_App.app/alloy/constants.js, Resource: alloy/constants_js<\r\n[26:20.636] Recv: >scripts*created*5|app:/alloy/constants.js||1|258<\r\n[26:20.638] Recv: >log*out*[DEBUG] Loading: /Users/michael.kellogg/Library/Developer/CoreSimulator/Devices/298F2E61-EB53-4F7F-9F8E-81E01C41227F/data/Containers/Bundle/Application/127FF10D-E5C2-48C4-A9F9-C04804A1F49A/K2M_App.app/alloy/CFG.js, Resource: alloy/CFG_js<\r\n[26:20.639] Recv: >scripts*created*6|app:/alloy/CFG.js||1|2<\r\n[26:20.639] Recv: >log*out*[DEBUG] Loading: /Users/michael.kellogg/Library/Developer/CoreSimulator/Devices/298F2E61-EB53-4F7F-9F8E-81E01C41227F/data/Containers/Bundle/Application/127FF10D-E5C2-48C4-A9F9-C04804A1F49A/K2M_App.app/alloy/controllers/index.js, Resource: alloy/controllers/index_js<\r\n[26:20.640] Recv: >scripts*created*7|app:/alloy/controllers/index.js||1|330<\r\n[26:20.640] Recv: >log*out*[DEBUG] Loading: /Users/michael.kellogg/Library/Developer/CoreSimulator/Devices/298F2E61-EB53-4F7F-9F8E-81E01C41227F/data/Containers/Bundle/Application/127FF10D-E5C2-48C4-A9F9-C04804A1F49A/K2M_App.app/alloy/controllers/BaseController.js, Resource: alloy/controllers/BaseController_js<\r\n[26:20.641] Recv: >scripts*created*8|app:/alloy/controllers/BaseController.js||1|510<\r\n[26:20.643] Recv: >log*out*[DEBUG] Loading: /Users/michael.kellogg/Library/Developer/CoreSimulator/Devices/298F2E61-EB53-4F7F-9F8E-81E01C41227F/data/Containers/Bundle/Application/127FF10D-E5C2-48C4-A9F9-C04804A1F49A/K2M_App.app/_app_props_.json, Resource: _app_props__json<\r\n[26:20.645] Recv: >log*out*[INFO] this is an ipad device<\r\n[26:20.645] Recv: >log*out*[DEBUG] Loading: /Users/michael.kellogg/Library/Developer/CoreSimulator/Devices/298F2E61-EB53-4F7F-9F8E-81E01C41227F/data/Containers/Bundle/Application/127FF10D-E5C2-48C4-A9F9-C04804A1F49A/K2M_App.app/AuthService.js, Resource: AuthService_js<\r\n[26:20.646] Recv: >scripts*created*9|app:/AuthService.js||1|30<\r\n[26:20.646] Recv: >log*out*[INFO] here is auth:[object Object]<\r\n[26:20.646] Recv: >log*out*[INFO] after the auth object<\r\n[26:20.646] Recv: >log*out*[INFO] made it into the auth.get function<\r\n[26:20.646] Recv: >log*out*[INFO] token info here: [object Object]<\r\n[26:20.646] Recv: >log*out*[INFO] made it into the auth.get function<\r\n[26:20.647] Recv: >log*out*[INFO] made it into the auth.get function<\r\n[26:20.647] Recv: >log*out*[INFO] made it into the auth.get function<\r\n[26:20.647] Recv: >log*out*[INFO] went into afterAuthorized function<\r\n[26:20.647] Recv: >log*out*[INFO] made it into the auth.get function<\r\n[26:20.649] Recv: >log*out*[INFO] this is what we are putting in the setRequestHeader: AuthorizationBearer 00D36000000J2JZ!AQsAQDmGpfHrlzzwJ.jNDNleiO8PMyUU1EYoiyDaTHMzJiLAqA.qLr_jT0G06XE0yQ1XuIMIadH1OZ8JxoZrmAcfqp3RXEIo<\r\n[26:20.652] Recv: >log*out*[DEBUG] Application booted in 97.221017 ms<\r\n[26:20.775] Recv: >log*out*[INFO] the data variable holds this crap: {\"tooling\":\"/services/data/v35.0/tooling\",\"chatter\":\"/services/data/v35.0/chatter\",\"tabs\":\"/services/data/v35.0/tabs\",\"appMenu\":\"/services/data/v35.0/appMenu\",\"quickActions\":\"/services/data/v35.0/quickActions\",\"queryAll\":\"/services/data/v35.0/queryAll\",\"commerce\":\"/services/data/v35.0/commerce\",\"wave\":\"/services/data/v35.0/wave\",\"exchange-connect\":\"/services/data/v35.0/exchange-connect\",\"analytics\":\"/services/data/v35.0/analytics\",\"search\":\"/services/data/v35.0/search\",\"identity\":\"https://login.salesforce.com/id/00D36000000J2JZEA0/00536000000SyGIAA0\",\"composite\":\"/services/data/v35.0/composite\",\"theme\":\"/services/data/v35.0/theme\",\"nouns\":\"/services/data/v35.0/nouns\",\"recent\":\"/services/data/v35.0/recent\",\"connect\":\"/services/data/v35.0/connect\",\"licensing\":\"/services/data/v35.0/licensing\",\"limits\":\"/services/data/v35.0/limits\",\"process\":\"/services/data/v35.0/process\",\"async-queries\":\"/services/data/v35.0/async-queries\",\"query\":\"/services/data/v35.0/query\",\"ma...375<\r\n[26:20.775] Recv: >log*out*[INFO] onLoad 200<\r\n----------End of file----------\r\n{code}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-03-04T14:21:27.000+0000", "updated": "2016-03-09T07:28:52.000+0000" }, { "id": "379311", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI tested this issue in my environment. Debugging is working as expected both for iOS and android.\r\n\r\n*Testing Environment:*\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.3\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 4.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.3\r\n Core Package = 5.2.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\n node-appc Version = 0.2.31\r\n{code}\r\n\r\n*Steps to test:*\r\n- Create a project\r\n- Add breakpoint at a valid position \r\n- Run in debug mode\r\n\r\nThanks.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-09T09:03:51.000+0000", "updated": "2016-03-09T11:52:44.000+0000" }, { "id": "379336", "author": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "body": "I just created a new project and tried debugging and it didn't work. I'm expecting execution to suspend when it hits a breakpoint in debug mode, is this a correct expectation?\r\n\r\n", "updateAuthor": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-09T13:30:10.000+0000", "updated": "2016-03-09T13:30:10.000+0000" }, { "id": "379404", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~mkellogg91@gmail.com] Where did you put the breakpoint? And this maybe strange but, do you think you can try this in a different network? (or go offline and try)", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-10T03:21:16.000+0000", "updated": "2016-03-10T03:21:16.000+0000" }, { "id": "380098", "author": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "body": "I put breaklines on a function call and on lines inside the test function. Are there specific types of code that won't suspend execution even if it has a breakpoint?\r\n\r\nI will try offline and let you know what happens", "updateAuthor": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-18T14:27:03.000+0000", "updated": "2016-03-18T14:27:03.000+0000" }, { "id": "380101", "author": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "body": "Long story short, didn't suspend on execution. I unplugged ethernet and turned off wifi and tried running again. As you can see from the image I had placed breakpoints on the call of each 4 functions and inside the 4 functions as well, but no suspend. I've also included the output when I attempt to debug (only text after application starts).\r\n\r\n\r\n!http://i68.tinypic.com/9porvc.jpg!\r\n\r\n\r\nstarting app: com.debugTester/.DebugtesterActivity\r\n[INFO] : Application pid: 2142\r\n[INFO] : Forwarding host port 61572 to device for debugging\r\n-- Start application log -----------------------------------------------------\r\n[INFO] : TiApplication: (main) [0,0] checkpoint, app created.\r\n[INFO] : TiApplication: (main) [17,17] Titanium 5.1.2 (2015/12/16 19:00 ca822b2)\r\n[INFO] : TiApplication: (main) [26,43] Titanium Javascript runtime: v8\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[WARN] : V8Object: (KrollRuntimeThread) [28,28] Runtime disposed, cannot set property 'userAgent'\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.debugTester.DebugtesterActivity@21e535bc\r\n[INFO] : Project built successfully in 30s 805ms\r\n[ERROR] : Error: getaddrinfo ENOTFOUND platform.appcelerator.com\r\n at errnoException (dns.js:44:10)\r\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26)\r\n---------------------------------------------\r\n at TLSSocket.Readable.on (_stream_readable.js:671:33)\r\n at tickOnSocket (_http_client.js:489:10)\r\n at _http_client.js:504:7\r\n at process._tickDomainCallback (node.js:381:11)\r\n---------------------------------------------\r\n at ClientRequest.onSocket (_http_client.js:499:11)\r\n at Agent.addRequest (_http_agent.js:166:9)\r\n at new ClientRequest (_http_client.js:154:16)\r\n at Object.exports.request (http.js:49:10)\r\n at Object.exports.request (https.js:136:15)\r\n at Request.start (/Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/request/request.js:747:30)\r\n at Request.end (/Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/request/request.js:1381:10)\r\n at end (/Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/request/request.js:575:14)\r\n at Immediate._onImmediate (/Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/request/request.js:589:7)\r\n[INFO] : OpenGLRenderer: Initialized EGL, version 1.4\r\n[WARN] : EGL_emulation: eglSurfaceAttrib not implemented\r\n[WARN] : OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xefd07ec0, error=EGL_SUCCESS\r\n[INFO] : testing1\r\n[INFO] : testing2\r\n[INFO] : testing3\r\n[INFO] : testing4\r\n[WARN] : EGL_emulation: eglSurfaceAttrib not implemented\r\n[WARN] : OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xefd07ee0, error=EGL_SUCCESS\r\n[INFO] : APSAnalyticsService: Analytics Service Started", "updateAuthor": { "name": "mkellogg91@gmail.com", "key": "mkellogg91@gmail.com", "displayName": "Michael Kellogg", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-18T14:46:02.000+0000", "updated": "2016-03-18T14:48:23.000+0000" }, { "id": "380205", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~mkellogg91@gmail.com] with the network enabled, have you tried on device? [~jnaher]see if you can work with Michael and see if there's anything different from both your environments. both looks the same but somehow Jebun doesn't see any issues.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-21T02:48:20.000+0000", "updated": "2016-03-21T02:48:20.000+0000" }, { "id": "435960", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving as {{Done}} as newer versions of Titanium use the native Safari- and Chrome-debugger protocol that does not have this issue anymore.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-27T09:02:00.000+0000", "updated": "2018-03-27T09:02:00.000+0000" }, { "id": "439825", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closed as completed. If this is in error, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:34:44.000+0000", "updated": "2018-08-06T17:34:44.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }