Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-597

Windows: Debug source map reports incorrect line

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: Alloy 1.1.0
    • Fix Version/s: 2013 Sprint 07
    • Component/s: Titanium Studio
    • Labels:
      None
    • Environment:

      TiSDK 3.1.0.v20130401102449
      TiStudio 3.1.0.201304010847
      OS: Windows 7 x64
      Alloy: 1.1.0-alpha
      Android Galaxy Nexus 4.1.1

      Description

      Problem description

      Under Windows, setting a breakpoint on the original controller source did not cause the app to break where expected.
      Setting a breakpoint on the generated controller source works.

      Steps to reproduce
      Sample 'index.js'

      function doClick(e) {  
          alert($.label.text + a);
      }
       
      var a = 5;
       
      $.index.open();
      

      Attached the 'Resources/alloy/controllers/index.js' generated file.

      1) Set a Breakpoint at line 2 ( alert($.label.text + a); )
      2) Debug for Android
      Result: Breakpoints are ignored

      3) Check the source map with command (from the build folder):

      $ alloy debugger generated "map/Resources/alloy/controllers/index.js.map" --line 2 --column 6 --source "app/alloy/controllers/index.js"
      

      Expected result:

      {line: 3, column: 9}
      

      Actual Result:

      { line: 35, column: 17 }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tlukasavage Tony Lukasavage
                Reporter:
                fcasali Federico Casali
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration