Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18333] iOS: Debugger creates unnecessary call-frames in debug view

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-01-27T22:03:03.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sRelease 3.5.1, Release 4.0.0
ComponentsiOS
Labelsqe-3.5.0, qe-verified, regression
ReporterKajenthiran Velummaylum
AssigneePedro Enrique
Created2015-01-07T04:46:30.000+0000
Updated2015-02-25T17:44:18.000+0000

Description

Debugger creates unnecessary call-frames in 3.5.0. Two screenshots are attached to differentiate the behaviors in 3.5.0 and 3.4.1.

It's a regression since 3.4.1 works as expected

Steps To Reproduce

1. Create a classic App 2. Add following two JS files called app.js and import.js {panel:title=app.js}
Ti.include("import.js");

var win = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});

win.open(); 
{panel} {panel:title=import.js}
 
var x = 10;
Ti.API.info("x = "+x);

function imported(x) {
	var y = 'y';
	Ti.API.log("Imported function: x="+x+", y=",y);
}
{panel} 3. Place a breakpoint at line 2 of import.js file 4. Debug in iOS device. 5. Observe the call-frames in *Debug pane*

Actual Result

3 call-frames are observed and 2nd is unnecessary. See the screenshot *Screenshot_3.5.0.png*

Expected Result

2 call-frames observed. See the screenshot *Screenshot_3.4.1.png* *Note:* Variables in variable pane are grayed in 3.5.0 while 3.4.1 shows as green.

Attachments

FileDateSize
Screenshot_3.4.1.png2015-01-07T04:46:30.000+0000121913
Screenshot_3.5.0.png2015-01-07T04:46:30.000+0000121185

Comments

  1. Ingo Muschenetz 2015-01-07

    FYI--please review.
  2. Pedro Enrique 2015-01-13

    https://github.com/appcelerator/titanium_mobile/pull/6564
  3. Ewan Harris 2015-01-27

    Verified fix on: Mac OSX 10.10.1 Appcelerator Studio, build: 3.4.1.201410281743 Titanium SDK build: 3.5.1.v20150122144120 ,3.6.0.v20150127082526 Titanium CLI, build: 3.4.1 Alloy: 1.5.1 Xcode 6.1.1 iPhone 6 (8.1), iOS Simulator (8.1) Built to device and sim, the second eval script call frame no longer exists. Closing ticket.
  4. Ewan Harris 2015-01-27

    Reopening to fix comment

JSON Source