Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10996] iOS: Debugger: CommonJS Require: debugger skips local assignments in commonjs modules

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-14T18:55:31.000+0000
Affected Version/sRelease 2.1.2, Release 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsdebugger, qe-ios090112
ReporterDustin Hyde
AssigneeEric Merriman
Created2012-09-19T14:51:37.000+0000
Updated2017-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

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

Comments

  1. Lee Morris 2017-06-14

    Closing ticket due to time passed and lack of progress over the past few years. If this problem persists, please file a new ticket.

JSON Source