Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10997] iOS: Debugger: debugger skips last statement in every code block

GitHub Issuen/a
TypeBug
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 2.1.2, Release 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsdebugger, parity, qe-ios090112
ReporterDustin Hyde
AssigneeUnknown
Created2012-09-19T14:57:31.000+0000
Updated2018-02-28T20:03:41.000+0000

Description

Debugger skips last statement in every code block. This works in Android. For instance, if the debugger steps over this function call line by line:
var myFunction = function()
{
	Ti.API.info('myincludeJS.myFunction()');
	
	myIncludeLocal = 'newValue';
};
'myIncludeLocal = 'newValue'' will be skipped by the debugger. Attached sample project 'MyProject' (includes js files and breakpoint at line 1). Attached separate js files (app.js, myrequire.js, and myinclude.js) for reference (same as in 'MyProject.zip'). Attached debugger protocol log: 'iosdebugger.log' Attached studio/console logs: 'ios_debugger_console_log.txt' and 'ios_debugger_studio_log.txt' for reference. Steps to Reproduce: 1. Run MyProject in debugger. 2. Step into every line in app.js, and step over every line in myrequire.js and myinclude.js. Actual Result: The last assignment statements in both 'MyFunction' calls, and the last assignment in app.js, are never hit by the debugger. Expected Result: Every assignment statement in the code should be hit (the line marker will pause and the values pane will be populated).

Attachments

FileDateSize
app.js2012-09-19T14:57:34.000+0000138
ios_debugger_console_log.txt2012-09-19T14:57:34.000+0000942
ios_debugger_studio_log.txt2012-09-19T14:57:34.000+000020731
iosdebugger.log2012-09-19T14:57:34.000+000011188
myinclude.js2012-09-19T14:57:34.000+0000192
MyProject.zip2012-09-19T14:57:34.000+00003125514
myrequire.js2012-09-19T14:57:34.000+0000189

Comments

  1. Eric Wieber 2015-11-30

    I am unable to reproduce this issue, using: MacOS 10.11.2 (15C48a) Studio 4.4.0.201511241829 Ti SDK 5.1.2.v20151129224430 Appc NPM 4.2.2 Appc CLI 5.1.0 Ti CLI 5.0.5 Alloy 1.7.26 Arrow 1.3.22 Xcode 7.1.1 (7B1005) Node v0.12.7 Java 1.7.0_80 I did not encounter this with the provided sample project nor a simple test case created from the default samples. Followed above steps and placed breakpoints in my own tests, then stepped through the projects. Tested on iPhone 8.4 simulator and an iOS 9.1 iPad.

JSON Source