Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11007] Android: Debugger: debugger continues for an extra step at end of program

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2017-06-14T18:54:32.000+0000
Affected Version/sRelease 2.1.2, Release 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-and090112
ReporterDustin Hyde
AssigneeEric Merriman
Created2012-09-19T15:40:04.000+0000
Updated2017-06-14T18:54:32.000+0000

Description

Debugger continues for an extra step at end of program. For instance, if the debugger steps line by line through app.js:
var myRequire = require('myrequire');

myRequire.myFunction();

Ti.include('myinclude.js');

myFunction();

var appJSLocal = 'appJSLocal';
'var appJSLocal = 'appJSLocal'' appears to be called twice at the end when stepping over. 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 last line ('var appJSLocal = 'appJSLocal'') appears to be called twice when step-over is called. Expected Result: The program should end after the last assignment statement is registered (the value is assigned in the variables pane) and step-over is called.

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