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

iOS: Debugger: can't step-into win.open to view win.url javascript file

    Details

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

      Titanium Studio: 3.0.0.201210291448
      Titanium SDK: 3.0.0.v20121030170824
      OS: Mountain Lion 10.8.2
      Devices: Android Emulator 2.2, iPhone Simulator 6.0
      Xcode: 4.5.1
      Titanium CLI: disabled

    • Sprint:
      2016 Sprint 06 SDK

      Description

      Can't step-into win.open() to view win.url javascript file. However any breakpoints in the file are hit.

      Steps to Reproduce:

      1. Run code in Debug mode:

      app.js

      /* Ti.include */
       
      Ti.API.info('Ti.include(\'module.js\')');
       
      Ti.include('module.js');
       
      /* require */
       
      Ti.API.info('require(\'module\')');
       
      require('module');
       
      /* Ti.UI.Window.url */
       
      Ti.API.info('win.url.open()');
       
      var win = Ti.UI.createWindow({
      	url : 'module.js',
      	backgroundColor : 'red'
      });
       
      win.open();
       
      /* alert */
       
      alert('alert');
      

      module.js

      /* console */
       
      if(Ti.Platform.osname != 'android') // TIMOB-11294 - Android: console: log functions fail in commonjs require
      {
      	console.log('console LOG');
      	console.log(['console LOG', 'ARG1', 'ARG2']);
      	 
      	console.debug('console DEBUG');
      	console.debug(['console DEBUG', 'ARG1', 'ARG2']);
      	 
      	console.info('console INFO');
      	console.info(['console INFO', 'ARG1', 'ARG2']);
      	 
      	console.warn('console WARN');
      	console.warn(['console WARN', 'ARG1', 'ARG2']);
      	
      	console.error('console ERROR');
      	console.error(['console ERROR', 'ARG1', 'ARG2']);
      }
      else
      {
      	Ti.API.info('TIMOB-11294 - Android: console: log functions fail in commonjs require');
      }
       
      /* Ti.API */
       
      Ti.API.trace('Ti.API TRACE');
      Ti.API.trace(['Ti.API TRACE', 'ARG1', 'ARG2']);
       
      Ti.API.debug('Ti.API DEBUG');
      Ti.API.debug(['Ti.API DEBUG', 'ARG1', 'ARG2']);
       
      Ti.API.info('Ti.API INFO');
      Ti.API.info(['Ti.API INFO', 'ARG1', 'ARG2']);
       
      Ti.API.warn('Ti.API WARN');
      Ti.API.warn(['Ti.API WARN', 'ARG1', 'ARG2']);
       
      Ti.API.error('Ti.API ERROR');
      Ti.API.error(['Ti.API ERROR', 'ARG1', 'ARG2']);
       
      /* Ti.API.log */
       
      Ti.API.log('TRACE', 'Ti.API.log TRACE');
      Ti.API.log('TRACE', ['Ti.API.log TRACE', 'ARG1', 'ARG2']);
       
      Ti.API.log('DEBUG', 'Ti.API.log DEBUG');
      Ti.API.log('DEBUG', ['Ti.API.log DEBUG', 'ARG1', 'ARG2']);
       
      Ti.API.log('INFO', 'Ti.API.log INFO');
      Ti.API.log('INFO', ['Ti.API.log INFO', 'ARG1', 'ARG2']);
       
      Ti.API.log('WARN', 'Ti.API.log WARN');
      Ti.API.log('WARN', ['Ti.API.log WARN', 'ARG1', 'ARG2']);
       
      Ti.API.log('ERROR', 'Ti.API.log ERROR');
      Ti.API.log('ERROR', ['Ti.API.log ERROR', 'ARG1', 'ARG2']);
       
      Ti.API.log('LOG', 'Ti.API.log LOG');
      Ti.API.log('LOG', ['Ti.API.log LOG', 'ARG1', 'ARG2']);
       
      /* Ti.iOS.API */
       
      if(Ti.Platform.osname == 'iphone' || Ti.Platform.osname == 'ipad')
      {
          Ti.API.timestamp('Ti.API TIMESTAMP');
          Ti.API.timestamp(['Ti.API TIMESTAMP', 'ARG1', 'ARG2']);
      }
      

      2. Add a breakpoint near the beginning and step-over unti you hit win.open();
      3. Step into win.open();

      Actual Result:

      Skips over win.url javascript file. There seems to be no way to debug into this file without pre-existing breakpoints in the file.

      Expected Result:

      Stepping into win.open() seems like it should hit the first line of the win.url javascript file ('module.js').

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                apetkov Angel Petkov
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration