[TIMOB-11307] Android Debugger: Breakpoints not recognized on files that are added to app.js using URL
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-18T01:50:38.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 21 Core, 2012 Sprint 21 |
Components | Android |
Labels | core, debugger, qe-and100112, qe-port, qe-testadded |
Reporter | Pragya Rastogi |
Assignee | Bill Dawson |
Created | 2012-10-05T08:40:13.000+0000 |
Updated | 2015-02-25T19:22:36.000+0000 |
Description
This is a regression issue. It does not occur in 2.1.3.GA
Steps To Reproduce:
1. create app with code below.
2. Put a breakpoint on any line in newWin.js file.
3. Run the app using SDK 3.0 in debug mode(Emulator or Device).
4. Click Test button.
Actual: Breakpoint is not recognized in newWin File. Variables tab appear blank. Console output shows nothing.
Expected: Breakpoint must get hit. Console and Variables tab must work as expected.
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){
var newWin = Ti.UI.createWindow({url:'newWin.js'});
newWin.open();
});
win.add(button);
win.open();
newWin.js
var win = Ti.UI.currentWindow;
win.backgroundColor = 'white';
var x = 1;
Ti.API.info("hi");
Attachments
File | Date | Size |
---|---|---|
androiddebugger.log | 2012-10-09T00:16:08.000+0000 | 2484 |
iosdebugger.log | 2012-10-09T00:16:08.000+0000 | 2506 |
Is this Android or iOS? Is this an SDK bug or a Studio bug?
Hi Pragya, Several questions: 1. Do you see this for both Android and iOS debugging? 2. Do you see this when using Studio 3.0.0 but switching to 2.1.3 SDK? 3. Do you see this when using Studio 2.1.2 with SDK 3.0.0? Thanks.
This does NOT occur in Studio 3.0 using iOS Simulator with SDK 2.1.3 or 3.0.0.X. This DOES occur in Studio 3.0 using Android Device with SDK 3.0.0.X. This appears to be a long-standing Android issue. Attaching logs. Sample code: app.js
win.js
Steps to Reproduce: 1. Run code (add breakpoint on specified line). Actual Result: Nothing happens. Expected Result: Breakpoint should be hit.
Suggested that this regression could be caused by https://github.com/appcelerator/titanium_mobile/commit/f029b6609c06aba8651f0f57296de04deb706f4f
master PR ready: https://github.com/appcelerator/titanium_mobile/pull/3278
3_0_X PR ready: https://github.com/appcelerator/titanium_mobile/pull/3281
Verified on: Titanium Studio: 3.0.0.201211301903 Titanium SDK:3.0.0.v20121204181658 iOS Simulator (v6.0), Android Emulator (v2.2), Samsung Galaxy Note (v2.3.6)