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

Android Debugger: Breakpoints not recognized on files that are added to app.js using URL

    Details

      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

          Issue Links

            Activity

              People

              • Assignee:
                billdawson Bill Dawson
                Reporter:
                prastogi Pragya Rastogi
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration