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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 3.5.1
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Titanium SDK 3.5.1.v20150223154830 & 3.5.0.GA
      Studio 3.4.2.201502181619
      CLI 3.4.2-alpha
      Xcode 6.2b5

      Description

      Files added in a project with 'url' are not allowing break points to be hit. This is not a regression as I also see it with 3.5.0.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.
      4. Click Test button.

      Actual: Breakpoint is not recognized in newWin File.

      Expected: Breakpoint must get hit.

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

      Notes:
      See related ticket. Looks like this was fixed for Android in the past and iOS was verified. Possibly broke since then.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ewieber Eric Wieber (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

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

                    Git Source Code