[TIMOB-10996] iOS: Debugger: CommonJS Require: debugger skips local assignments in commonjs modules
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-14T18:55:31.000+0000 |
Affected Version/s | Release 2.1.2, Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | debugger, qe-ios090112 |
Reporter | Dustin Hyde |
Assignee | Eric Merriman |
Created | 2012-09-19T14:51:37.000+0000 |
Updated | 2017-06-14T18:55:31.000+0000 |
Description
Debugger skips local assignments in commonjs modules.
For instance, if the debugger steps over this commonjs module line by line:
Ti.API.info('require(\'myrequire\')');
var myRequireLocal = 'myRequireLocal';
exports.myFunction = function()
{
Ti.API.info('myrequire.myFunction()');
myRequireLocal = 'newValue';
};
'var myRequireLocal = 'myRequireLocal'' and 'exports.myFunction = function()' 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 assignment statements in myrequire.js are never hit by the debugger.
Expected Result:
Every assignment statement in myrequire.js should be hit (the line marker will pause and the values pane will be populated).
Attachments
File | Date | Size |
---|---|---|
app.js | 2012-09-19T14:51:37.000+0000 | 138 |
ios_debugger_console_log.txt | 2012-09-19T14:51:37.000+0000 | 942 |
ios_debugger_studio_log.txt | 2012-09-19T14:51:37.000+0000 | 20731 |
iosdebugger.log | 2012-09-19T14:51:37.000+0000 | 11188 |
myinclude.js | 2012-09-19T14:51:37.000+0000 | 192 |
MyProject.zip | 2012-09-19T14:51:37.000+0000 | 3125514 |
myrequire.js | 2012-09-19T14:51:37.000+0000 | 189 |
Closing ticket due to time passed and lack of progress over the past few years. If this problem persists, please file a new ticket.