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

Android: Debugger: CommonJS Require: debugger skips require() call


    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Invalid
    • Affects Version/s: Release 2.1.2, Release 3.0.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Titanium Studio: 2.1.2, 3.0.0
      Titanium SDK: 2.1.2.GA, 3.0.0.v20120917105713
      OS: Mountain Lion 10.8
      Xcode: 4.4/4.5
      Devices Tested: Android Emulator 2.2/2.3.3


      Debugger skips commonJS require() call.

      Works on iOS.

      For instance, if the debugger steps into this commonjs require:

      var myRequire = require('myrequire');

      The line will be skipped by the debugger.

      Attached sample project 'MyProject' (includes js files and breakpoint at line 1).
      Attached separate js files (app.js, myrequire.js, and myinclude.js) for reference (same as in 'MyProject.zip').
      Attached debugger protocol log: 'androiddebugger.log'
      Attached studio/console logs: 'android_debugger_console_log.txt' and 'android_debugger_studio_log.txt' for reference.

      Steps to Reproduce:

      1. Run MyProject in debugger.
      2. Step into every line in app.js, and step over every line in myrequire.js and myinclude.js.

      Actual Result:

      The require() call in app.js is skipped by the debugger when 'step-into' is called.

      Expected Result:

      The commonJS module code should be hit by the debugger (i.e., the debugger enters myrequire.js).


        1. android_debugger_console_log.txt
          35 kB
        2. android_debugger_studio_log.txt
          21 kB
        3. androiddebugger.log
          10 kB
        4. app.js
          0.1 kB
        5. myinclude.js
          0.2 kB
        6. MyProject.zip
          2.98 MB
        7. myrequire.js
          0.2 kB

          Issue Links



              • Assignee:
                emerriman Eric Merriman
                dhyde Dustin Hyde
              • Watchers:
                1 Start watching this issue


                • Created:

                  Backbone Issue Sync

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

                    Git Integration