Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-11172

iOS: Debugger: breakpoint at unassigned variable declaration skipped

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 2.1.2, Release 2.1.3, Release 3.0.0
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Titanium SDK: 2.1.2.GA, 2.1.3.v20120925134611, 3.0.0.v20120925124913
      Titanium Studio: 2.1.2, 3.0.0.201209252419
      OS: Mountain Lion 10.8.2
      Xcode: 4.5
      Device: iPhone Simulator 5.1/6.0

    • Story Points:
      1
    • Sprint:
      2016 Sprint 06 SDK

      Description

      Breakpoints at unassigned variable declarations are skipped.

      For example:

      var deadVar1; // breakpoint
       
      Ti.API.info('Global Variables Defined!');
       
      (function(){
      	var deadVar2; // breakpoint
      	
      	Ti.API.info('Anonymous Function Called!');
      })();
       
      alert('App Exited!');
      

      Running this code in debug mode will skip all breakpoints.

      This does not occur in Android, this is a parity issue.

      Steps to Reproduce:

      1. Run code in debug (manually insert breakpoints as per code comments):

      var deadVar1; // breakpoint
       
      Ti.API.info('Global Variables Defined!');
       
      (function(){
      	var deadVar2; // breakpoint
      	
      	Ti.API.info('Anonymous Function Called!');
      })();
       
      alert('App Exited!');
      

      Actual Result:

      App exits without hitting any breakpoints.

      Expected Result:

      The first breakpoint should be hit and pressing 'Resume' should hit the next breakpoint.

      Here is the expected console log for the sample code:

      [INFO] Global Variables Defined!
      [INFO] Anonymous Function Called!
      

        Attachments

        1. androiddebugger.log
          4 kB
        2. app.js
          0.2 kB
        3. console-log.txt
          0.1 kB
        4. iosdebugger.log
          2 kB
        5. MyProject.zip
          2.98 MB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dhyde Dustin Hyde
                Tester:
                Abir Mukherjee
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-14458
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code