Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5748] Android: Debugger in Android does not stop at the breakpoints that are required by (require(file.js) )

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-10-25T12:51:46.000+0000
Affected Version/sRelease 1.7.2, Release 1.7.3, Release 1.8.0
Fix Version/sSprint 2011-42, Release 1.7.4, Release 1.8.0
ComponentsAndroid
Labelsqe-testadded
ReporterFrancisco Antonio Duran Ramirez
AssigneeBill Dawson
Created2011-10-13T11:29:24.000+0000
Updated2012-10-24T21:05:25.000+0000

Description

Problem

Debugger in Android does not stop at the breakpoint that it's required by require(file.js)

Reproducible steps:

1.Run the code below. 2. Put a breakpoint on line 2 of lib.js and see if the debugger stops there when you scroll.

Expected behavior

Customer wants to stop on a breakpoint that it is required by require(file.js)

Additional Information:

Debugger in iphone stops at the breakpoint that it's required by require(file.js), but not in Adroid.

Sample Code:

var win = Ti.UI.createWindow({
    backgroundColor:'#fff'
});

var lib = require('lib');

var container = Ti.UI.createScrollView({
    top:50,
    left:10,
    right:10,
    height:150,
    width:300,
    contentWidth:800,
    scrollType:'horizontal'
});

container.addEventListener('scroll', lib.eventHandler);

container.add(Ti.UI.createLabel({width:800, height: 20,
	text:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor'}));

win.add(container);
win.open();
exports.eventHandler = function() {
    Ti.API.info('got scroll');
}

Helpdesk

APP-899229

Comments

  1. Bill Dawson 2011-10-21

    Pull request ready: https://github.com/appcelerator/titanium_mobile/pull/578
  2. Natalie Huynh 2012-01-19

    tested with 1.9.0.v20120119134634 with v8/rhino on 10.6.8 and Titanium Studio, build: 1.0.8.201201181442

JSON Source