[TIMOB-10997] iOS: Debugger: debugger skips last statement in every code block
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | Release 2.1.2, Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | debugger, parity, qe-ios090112 |
Reporter | Dustin Hyde |
Assignee | Unknown |
Created | 2012-09-19T14:57:31.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
app.js | 2012-09-19T14:57:34.000+0000 | 138 |
ios_debugger_console_log.txt | 2012-09-19T14:57:34.000+0000 | 942 |
ios_debugger_studio_log.txt | 2012-09-19T14:57:34.000+0000 | 20731 |
iosdebugger.log | 2012-09-19T14:57:34.000+0000 | 11188 |
myinclude.js | 2012-09-19T14:57:34.000+0000 | 192 |
MyProject.zip | 2012-09-19T14:57:34.000+0000 | 3125514 |
myrequire.js | 2012-09-19T14:57:34.000+0000 | 189 |
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.