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

Debugger: Variable pane is returning 'undefined' instead of null

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Invalid
    • Affects Version/s: Release 1.7.0, Release 5.1.1
    • Fix Version/s: None
    • Component/s: Android, iOS
    • Environment:

      Description

      Steps to reproduce:

      1. Create a Titanium classic app
      2. In the app.js file, replace the code with the following:

        var win = Ti.UI.createWindow({
        	backgroundColor: 'white',
        	layout: 'vertical'
        });
         
        var f = function() {
        	var foo = "a";
        	Ti.API.info("Inside anonymous function: "+foo);
        	Ti.API.info("Global val: "+x);
        	x+=1;
        };
         
        var b1 = Ti.UI.createButton({
        	title:'Anonymous f/g',
        	top:20
        });
         
        b1.addEventListener('click', function(e) {
        	f();
        	var g = f;
        	g();
        });
         
        win.add(b1);
        win.open();
        

      3. Add a breakpoint on line 7
      4. Debug app to iOS simulator or Android emulator
      5. After the app is launched, press the "Anonymous f/g" button
      6. Breakpoint should be triggered

      Actual: In Studio's debugger variables pane, foo is set to undefined; see attachment.
      Expected: According to test case 1013, step 9, in https://wiki.appcelerator.org/display/tp/Debugger+Test+Plan, foo should be set to null.

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              nhuynh Natalie Huynh
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration