Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-5748

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: Release 1.7.2, Release 1.7.3, Release 1.8.0
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium Studio, build: 1.0.4.201108101535
      Emulator
      1.7.2 Titanium SDK
      1.7.3.v20111007133015
      1.8.0.v20110930164213 CI Build
      Platform OS: Android
      Platform OS Version: 2.3.3

      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:

      app.js

      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();
      

      lib.js

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

      Helpdesk

      APP-899229

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                billdawson Bill Dawson
                Reporter:
                framirez Francisco Antonio Duran Ramirez
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-4891
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code