Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5079] iOS: Debugging functions loaded with require

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2011-11-14T11:18:51.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-46, Release 1.8.0.1
ComponentsiOS
Labelsdr-list
ReporterFrancisco Antonio Duran Ramirez
AssigneeStephen Tramer
Created2011-08-22T15:26:37.000+0000
Updated2017-03-21T21:39:13.000+0000

Description

Bug

Problem.

Studio Debugger doesn't step into functions that I loaded with 'require', nor does it stop at breakpoints set within those functions.

Reproducible steps:

1.Run the code below.

Expected behavior

Customer wants to debug functions that are contained in .js files called with 'require'.

Sample Code:

// app.js
var win = Ti.UI.createWindow({
  backgroundColor: 'blue'
});

var ui = require('ui'); 
var button = Ti.UI.createButton({
  title: 'Test',
  top: 20,
  height: 50,
  width: 200
});
button.addEventListener('click', function(e){
  ui.alertIt('hi');
});
win.add(button);
win.open();

// ui.js
exports.alertIt = function(e) {
  alert(e);
};

HelpDesk.

APP-899229

Comments

  1. Stephen Tramer 2011-11-10

    Requires the resolution of pull request 647 and pull request 621 to begin work since these change require() behavior.
  2. Stephen Tramer 2011-11-14

    Appears to be fixed by the pull requests listed in the ticket. Cannot reproduce as of 1.8.0.1.5457cb3, tested TiStudio debugger 1.0.7.201111111956 w/iPhone Sim 5.0.
  3. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source