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

iOS: Stepping over does not work if breakpoints are in the file that is included in app.js.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.5.0
    • Fix Version/s: Release 3.5.1, Release 4.0.0
    • Component/s: iOS
    • Environment:

      Appcelerator Studio: 3.4.1.201410281743
      Titanium SDK: 3.5.0.v20150112153317
      Titanium CLI: 3.4.1
      Alloy: 1.5.1
      OS: Mac OSX Yosemite 10.10
      Xcode 6.1

      Description

      This is a regression as the Step Over operation can be performed successfully using titanium sdk 3.4.1 GA.
      Stepping over operation fails when a file is included in app.js and breakpoints are placed in the included file.
      Steps to reproduce:
      1. Close any running emulators or simulators.
      2. Import and open the attached project into studio
      3. From Titanium Studio go to Debug perspective (Window > Open perspective > Debug)
      4. In the Breakpoints view, Remove All existing breakpoints
      5. Go to file -> import -> select breakpoints under Run/Debug and click next
      6. Browse to breakpoint-basic.bkpt in Test File Location
      7. Debug the test project.
      8. Check the result (Call frames in Debug view) for the first breakpoint hit.
      9. From Titanium Studio click 'Step Over'

      Actual Results:
      7. Application runs in the debug mode.
      8. In the debug view, there are 3 call frames. One of them is empty which is not required. Please refer to the attached screenshot.
      [Eval Script] [import.js:6]
      [Eval Script]
      [Top-level Script] [app.js:1]

      9. Line 2 is not highlighted in app.js.

      Expected Results:
      7. Application runs in the debug mode.
      8. In the debug view, there should be only two call frames as mentioned below.
      [Eval Script] [import.js:6]
      [Top-level Script] [app.js:1]
      9. Line 2 should be highlighted in app.js after Step Over operation .

        Attachments

        1. app.js
          0.4 kB
        2. debug_test.zip
          3.52 MB
        3. import.js
          0.1 kB
        4. Screen Shot 2015-01-13 at 6.50.53 PM.png
          Screen Shot 2015-01-13 at 6.50.53 PM.png
          317 kB

          Issue Links

            Activity

              People

              • Assignee:
                penrique Pedro Enrique (Inactive)
                Reporter:
                kagrawal Khushbu Agrawal
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code