Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18310] iOS: Debugger crashed when variable is changed to another variable

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-01-07T22:08:23.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sRelease 3.5.0, Release 4.0.0
ComponentsiOS
Labelsqe-3.5.0, regression
ReporterKajenthiran Velummaylum
AssigneePedro Enrique
Created2015-01-06T08:00:28.000+0000
Updated2015-01-07T22:08:23.000+0000

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 {noformat} x should display [object Object]. It works! {noformat} 7. Repeat the Step 6 again.

Actual Result.

{noformat} Debugger crashed. Please see the attachment for more info. {noformat}

Expected Result

{noformat} Debugger should not crash {noformat}

Attachments

FileDateSize
Screen Shot 2015-01-06 at 3.27.43 PM.png2015-01-06T08:00:28.000+0000126019

Comments

  1. Ingo Muschenetz 2015-01-06

    FYI. Can you please investigate?
  2. Pedro Enrique 2015-01-06

    https://github.com/appcelerator/titanium_mobile/pull/6543 https://github.com/appcelerator/titanium_mobile/pull/6542 https://github.com/appcelerator/titanium_debugger/pull/22
  3. Wilson Luu 2015-01-07

    Closing ticket as fixed. Verified that debugger does not crash if you follow the above reproducible steps. Tested on: Appcelerator Studio, build: 3.4.1.201410281743 SDK build: 3.5.0.v20150106150919 CLI: 3.4.1 Alloy: 1.5.1 Xcode: 6.2 beta 3 Devices: iphone 6 plus (8.1.1)

JSON Source