[TIMOB-18333] iOS: Debugger creates unnecessary call-frames in debug view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-01-27T22:03:03.000+0000 |
Affected Version/s | Release 3.5.0 |
Fix Version/s | Release 3.5.1, Release 4.0.0 |
Components | iOS |
Labels | qe-3.5.0, qe-verified, regression |
Reporter | Kajenthiran Velummaylum |
Assignee | Pedro Enrique |
Created | 2015-01-07T04:46:30.000+0000 |
Updated | 2015-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
File | Date | Size |
---|---|---|
Screenshot_3.4.1.png | 2015-01-07T04:46:30.000+0000 | 121913 |
Screenshot_3.5.0.png | 2015-01-07T04:46:30.000+0000 | 121185 |
FYI--please review.
https://github.com/appcelerator/titanium_mobile/pull/6564
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.
Reopening to fix comment