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
Pull request ready: https://github.com/appcelerator/titanium_mobile/pull/578
tested with 1.9.0.v20120119134634 with v8/rhino on 10.6.8 and Titanium Studio, build: 1.0.8.201201181442