Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-523

Breakpoints not recognized on files that are required (require(file.js);)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Titanium Studio 1.0.2
    • Fix Version/s: Titanium Studio 1.0.7
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      Tested on 1.7.0, 1.7.1, 1.7.2, 1.8.0

      Description

      If a file is required in an application, the breakpoints will not work. Use below test code and set a breakpoint in the ui.js file.

      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){
        ui.alertIt('hi');
      });
      win.add(button);
      win.open();
      

      ui.js

      exports.alertIt = function(e) {
        alert(e);
      };
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stephentramer Stephen Tramer
                Reporter:
                aleard Alan Leard
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: