Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20503] debugging not working for IOS or Android on my machine

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDone
Resolution Date2018-03-27T09:02:00.000+0000
Affected Version/sRelease 5.2.0
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMichael Kellogg
AssigneeUnknown
Created2016-03-02T16:18:57.000+0000
Updated2018-08-06T17:34:44.000+0000

Description

Steps to Reproduce

-place breakpoints -click debug view -select 'debug' from dropdown menu next to green execute button

Actual Result

application executes all the way through without stopping at any breakpoints

Expected Result

appliction should stop at breakpoint and not continue until specified

Attachments

FileDateSize
.log2016-03-02T16:18:59.000+00002635286
diagnostic4361060220844125777.log2016-03-02T16:19:05.000+000058932

Comments

  1. Michael Kellogg 2016-03-02

    is this a known issue or am I an exception? Any quick work-arounds?
  2. Chee Kiat Ng 2016-03-03

    [~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.
  3. Michael Kellogg 2016-03-03

    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.
  4. Kondal Kolipaka 2016-03-04

    [~mkellogg91@gmail.com] Can you attach ios debugger log file. Here you can find.
       <studio workspace>/.metadata/.plugins/com.appcelerator.titanium.ios.core/logs/iosdebugger.log 
       
  5. Michael Kellogg 2016-03-04

    Here is what I found in the log file you asked for:
       Logger started at: Wednesday, March 2, 2016 11:26:20 AM EST
       Component: com.appcelerator.titanium.ios.core
       Version: 1.0.0.1455692286
       [26:20.592] Sent: >21*1456935980592*version<
       [26:20.593] Recv: >1456935980592*2*5.1.2<
       [26:20.594] Sent: >36*1456935980593*option*monitorXHR*true<
       [26:20.594] Recv: >1456935980593<
       [26:20.594] Sent: >45*1456935980594*option*suspendOnFirstLine*false<
       [26:20.595] Recv: >1456935980594<
       [26:20.595] Sent: >46*1456935980595*option*suspendOnExceptions*false<
       [26:20.595] Recv: >1456935980595<
       [26:20.595] Sent: >42*1456935980596*option*suspendOnErrors*false<
       [26:20.595] Recv: >1456935980596<
       [26:20.595] Sent: >43*1456935980597*option*suspendOnKeywords*true<
       [26:20.595] Recv: >1456935980597<
       [26:20.596] Sent: >45*1456935980598*option*bypassConstructors*false<
       [26:20.596] Recv: >1456935980598<
       [26:20.596] Sent: >45*1456935980599*option*stepFiltersEnabled*false<
       [26:20.596] Recv: >1456935980599<
       [26:20.596] Sent: >30*1456935980600*detailFormatters<
       [26:20.596] Recv: >1456935980600<
       [26:20.596] Sent: >20*1456935980601*enable<
       [26:20.597] Recv: >1456935980601<
       [26:20.623] Recv: >threads*created*0*kroll$1<
       [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<
       [26:20.624] Recv: >scripts*created*1|app:/app.js||1|3<
       [26:20.625] Recv: >resumed*0*started<
       [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<
       [26:20.626] Recv: >scripts*created*2|app:/alloy.js||1|297<
       [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<
       [26:20.630] Recv: >scripts*created*3|app:/alloy/underscore.js||1|1344<
       [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<
       [26:20.634] Recv: >scripts*created*4|app:/alloy/backbone.js||1|1433<
       [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<
       [26:20.636] Recv: >scripts*created*5|app:/alloy/constants.js||1|258<
       [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<
       [26:20.639] Recv: >scripts*created*6|app:/alloy/CFG.js||1|2<
       [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<
       [26:20.640] Recv: >scripts*created*7|app:/alloy/controllers/index.js||1|330<
       [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<
       [26:20.641] Recv: >scripts*created*8|app:/alloy/controllers/BaseController.js||1|510<
       [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<
       [26:20.645] Recv: >log*out*[INFO] this is an ipad device<
       [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<
       [26:20.646] Recv: >scripts*created*9|app:/AuthService.js||1|30<
       [26:20.646] Recv: >log*out*[INFO] here is auth:[object Object]<
       [26:20.646] Recv: >log*out*[INFO] after the auth object<
       [26:20.646] Recv: >log*out*[INFO] made it into the auth.get function<
       [26:20.646] Recv: >log*out*[INFO] token info here: [object Object]<
       [26:20.646] Recv: >log*out*[INFO] made it into the auth.get function<
       [26:20.647] Recv: >log*out*[INFO] made it into the auth.get function<
       [26:20.647] Recv: >log*out*[INFO] made it into the auth.get function<
       [26:20.647] Recv: >log*out*[INFO] went into afterAuthorized function<
       [26:20.647] Recv: >log*out*[INFO] made it into the auth.get function<
       [26:20.649] Recv: >log*out*[INFO] this is what we are putting in the setRequestHeader: AuthorizationBearer 00D36000000J2JZ!AQsAQDmGpfHrlzzwJ.jNDNleiO8PMyUU1EYoiyDaTHMzJiLAqA.qLr_jT0G06XE0yQ1XuIMIadH1OZ8JxoZrmAcfqp3RXEIo<
       [26:20.652] Recv: >log*out*[DEBUG] Application booted in 97.221017 ms<
       [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<
       [26:20.775] Recv: >log*out*[INFO] onLoad 200<
       ----------End of file----------
       
  6. Jebun Naher 2016-03-09

    Hello, I tested this issue in my environment. Debugging is working as expected both for iOS and android. *Testing Environment:*
       Operating System
         Name                        = Mac OS X
         Version                     = 10.11.3
         Architecture                = 64bit
         # CPUs                      = 4
         Memory                      = 4.0GB
       
       Node.js
         Node.js Version             = 0.12.7
         npm Version                 = 2.11.3
       
       Appcelerator CLI
         Installer                   = 4.2.3
         Core Package                = 5.2.0
       
       Titanium CLI
         CLI Version                 = 5.0.6
         node-appc Version           = 0.2.31
       
    *Steps to test:* - Create a project - Add breakpoint at a valid position - Run in debug mode Thanks.
  7. Michael Kellogg 2016-03-09

    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?
  8. Chee Kiat Ng 2016-03-10

    [~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)
  9. Michael Kellogg 2016-03-18

    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? I will try offline and let you know what happens
  10. Michael Kellogg 2016-03-18

    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). !http://i68.tinypic.com/9porvc.jpg! starting app: com.debugTester/.DebugtesterActivity [INFO] : Application pid: 2142 [INFO] : Forwarding host port 61572 to device for debugging -- Start application log ----------------------------------------------------- [INFO] : TiApplication: (main) [0,0] checkpoint, app created. [INFO] : TiApplication: (main) [17,17] Titanium 5.1.2 (2015/12/16 19:00 ca822b2) [INFO] : TiApplication: (main) [26,43] Titanium Javascript runtime: v8 [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null [WARN] : V8Object: (KrollRuntimeThread) [28,28] Runtime disposed, cannot set property 'userAgent' [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.debugTester.DebugtesterActivity@21e535bc [INFO] : Project built successfully in 30s 805ms [ERROR] : Error: getaddrinfo ENOTFOUND platform.appcelerator.com at errnoException (dns.js:44:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26) --------------------------------------------- at TLSSocket.Readable.on (_stream_readable.js:671:33) at tickOnSocket (_http_client.js:489:10) at _http_client.js:504:7 at process._tickDomainCallback (node.js:381:11) --------------------------------------------- at ClientRequest.onSocket (_http_client.js:499:11) at Agent.addRequest (_http_agent.js:166:9) at new ClientRequest (_http_client.js:154:16) at Object.exports.request (http.js:49:10) at Object.exports.request (https.js:136:15) at Request.start (/Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/request/request.js:747:30) at Request.end (/Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/request/request.js:1381:10) at end (/Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/request/request.js:575:14) at Immediate._onImmediate (/Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/request/request.js:589:7) [INFO] : OpenGLRenderer: Initialized EGL, version 1.4 [WARN] : EGL_emulation: eglSurfaceAttrib not implemented [WARN] : OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xefd07ec0, error=EGL_SUCCESS [INFO] : testing1 [INFO] : testing2 [INFO] : testing3 [INFO] : testing4 [WARN] : EGL_emulation: eglSurfaceAttrib not implemented [WARN] : OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xefd07ee0, error=EGL_SUCCESS [INFO] : APSAnalyticsService: Analytics Service Started
  11. Chee Kiat Ng 2016-03-21

    [~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.
  12. Hans Knöchel 2018-03-27

    Resolving as Done as newer versions of Titanium use the native Safari- and Chrome-debugger protocol that does not have this issue anymore.
  13. Eric Merriman 2018-08-06

    Closed as completed. If this is in error, please reopen.

JSON Source