Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18253] iOS: Debugger crashed when the variable value is changed to random object

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-12-18T21:32:33.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sRelease 3.5.0
ComponentsiOS
Labelsqe-manualtest
ReporterPraveen Innamuri
AssigneePedro Enrique
Created2014-12-18T01:47:57.000+0000
Updated2015-01-06T07:53:55.000+0000

Description

- Put a breakpoint at line 3 in the below code.
function doClick(e) {
	var txt = "labelTxt";
    alert(txt);
    print(e);
}

function print(e) {
	Ti.API.info('info');
    Ti.API.warn('warn');
    Ti.API.error('error');
}

$.index.open();
- Debug the app onto iOS device or simulator. - Click on the label, so that the thread suspends its execution at line 3. - Now, change the value of 'txt' to "changed". Press F8 (Resume). The dialog shows the message "changed". It works ! Click on the label again to suspend the thread at the same line. Now, change the value of 'txt' to _changed_. Press F8 (Resume). The debugger/app will crash.

Comments

  1. Kajenthiran Velummaylum 2015-01-02

    Verified the Fix. App never crashed when repeating this procedure many times ( 10 times) . Hence closing the ticket. Test case is added in TCMS. Test Environment: Titanium SDK: 3.5.0.v20141222103320 Appc-Studio: 3.4.1 GA Titanium CLI: 3.4.1 GA Alloy : 1.5.1 GA Xcode : 6.1 OS: OSX 10.10.1 Device : iPhone 6plus (iOS 8.1)

JSON Source