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

iOS Debugger: Breakpoints not recognized on files that are required()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • 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

    • Sprint:
      2015 Sprint 24 SDK

      Description

      Steps to reproduce issue:
      1. Create a new application
      2. Replace the content of app.js with the following:

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

      3. Create a lib.js file in the "Resources" folder of the project with the following code:

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

      4. Add a breakpoint to line 2 of lib.js
      5. Debug the application.
      6. Scroll the text box.

      Expected Result:
      The breakpoint is hit on scroll.

      Actual Result:
      Breakpoint is not hit

      Notes:
      This is not a regression as the same is seen with 3.5.0.GA.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code