Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11002] Android: Debugger: CommonJS Require: debugger skips require() call

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-14T18:55:04.000+0000
Affected Version/sRelease 2.1.2, Release 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsdebugger, parity, qe-and090112
ReporterDustin Hyde
AssigneeEric Merriman
Created2012-09-19T15:18:09.000+0000
Updated2017-06-14T18:55:05.000+0000

Description

Debugger skips commonJS require() call. Works on iOS. For instance, if the debugger steps into this commonjs require:
var myRequire = require('myrequire');
The line 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: 'androiddebugger.log' Attached studio/console logs: 'android_debugger_console_log.txt' and 'android_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 require() call in app.js is skipped by the debugger when 'step-into' is called. Expected Result: The commonJS module code should be hit by the debugger (i.e., the debugger enters myrequire.js).

Attachments

FileDateSize
android_debugger_console_log.txt2012-09-19T15:25:54.000+000036214
android_debugger_studio_log.txt2012-09-19T15:25:54.000+000021107
androiddebugger.log2012-09-19T15:25:54.000+000010478
app.js2012-09-19T15:25:54.000+0000138
myinclude.js2012-09-19T15:25:54.000+0000192
MyProject.zip2012-09-19T15:25:54.000+00003125514
myrequire.js2012-09-19T15:25:54.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