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

iOS: Debugger crashed when variable is changed to another variable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 3.5.0
    • Fix Version/s: Release 3.5.0, Release 4.0.0
    • Component/s: iOS
    • Environment:

      Titanium SDK: 3.5.0.v20141222103320
      Appc-Studio: 3.4.1 GA
      Titanium CLI: 3.4.1 GA
      Alloy : 1.5.1 GA
      Xcode : 6.1
      OS: OSX 10.10.1
      Device : iPhone 6plus (iOS 8.1)

    • Story Points:
      5
    • Sprint:
      2015 Sprint 01 SDK

      Description

      When variable is changed to another variable, Debugger crashes.

      It's a regression since it works in 3.4.1 GA
      Steps to reproduce

      1. Create a classic project
      2. Copy following code in app.js file

      var y = {foo:'bar'};
       
      var win = Titanium.UI.createWindow({  
          title:'Tab 1',
          backgroundColor:'#fff'
      });
       
      var b = Ti.UI.createButton({
      	title:"Shadowing",
      	width:140,
      	height:40,
      	top:260
      });
      b.addEventListener('click',function() {
      	var x = "foo";
      	Ti.API.info("Shadow x: "+x);
      });
      win.add(b);
      win.open();
      

      3. Place a breakpoint in line 15 ( @ var x = "foo"; statement)
      4. Debug in iOS device
      5. Press the "Shadowing" button to trigger the breakpoint
      6. In the Variables pane, change value of x to y (not string; variable) by double-clicking in the Value column

       x should display [object Object]. It works! 

      7. Repeat the Step 6 again.

      Actual Result.

       Debugger crashed. Please see the attachment for more info. 

      Expected Result

       Debugger should not crash 

        Attachments

          Activity

            People

            • Assignee:
              penrique Pedro Enrique (Inactive)
              Reporter:
              kvelummaylum Kajenthiran Velummaylum
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration