Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3756] Android: Function arguments show local scope variables in debugger

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-11-05T13:44:32.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2011-32, Release 1.8.0
ComponentsAndroid
Labelsparity
ReporterMarshall Culpepper
AssigneeVikramjeet Singh
Created2011-04-27T13:01:17.000+0000
Updated2011-11-05T13:44:32.000+0000

Description

Functions show all local scope variables in their argument list (but shouldn't)

Comments

  1. Don Thorp 2011-05-03

    must have gotten auto-assigned to me. Moving to Marshall.
  2. Marshall Culpepper 2011-08-14

    To verify this fix: * In Titanium Studio, enter this code in app.js, and add breakpoints where directed:
       function myFn(a, b, c) {
         // add a breakpoint below here
         var d = 1;
         var e = 2;
       }
       
       function myFn2() {
         // add a breakpoint below here
         var x = 1;
       }
       
       myFn(3, 4, 5);
       myFn2();
       
    * Debug the application on the emulator * When the breakpoint in myFn hits, look at the expanded stack. At the top, you should see myFn(a, b, c) instead of (the fail case) myFn(a, b, c, d, e) * Click "Resume" * When the breakpoint in myFn2 hits, look at the expanded stack. At the top, you should see myFn2() with no arguments, instead of (the fail case) myFn2\(x\)
  3. Vikramjeet Singh 2011-09-13

    Resolved. Debugger values matches as told by Marshall in comments Tested on: Mac OSX Lion TiMob: 1.8.0.v20110906155354 TiStud: 1.0.5.201109091616 Devices Used: Android Emulator 2.2
  4. Don Thorp 2011-11-05

    Standardizing summary and labels.

JSON Source