Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-2709

iOS Device Debugger: CLI Disabled: debug thread process not selected on start

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: Titanium Studio 3.0.0
    • Fix Version/s: None
    • Component/s: Debugging, iOS
    • Environment:

      Description

      Debug thread not selected when ios debug on device session is initiated (see 'ios debug on device run 1.png').

      User must manually open the thread nodes to select the thread for debug controls to become active (see 'ios debug on device run 1 after manual process select.png').

      Steps to Reproduce:

      1. Clear debug view (terminate/clear processes) if in use.
      2. Debug project on iOS device using code (insert breakpoints where specified):

      app.js

      /* Ti.include */
       
      Ti.API.info('Ti.include(\'module.js\')'); // breakpoint
       
      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'); // breakpoint
      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']);
      }
      

      Actual Result:

      Debugger starts, breakpoint hits, correct thread is selected in debug process view, then the process becomes deselected and the debug controls become inactive. The user must manually expand the debug process nodes and select the thread with the breakpoint to use the debugger.

      Expected Result:

      Debugger starts, breakpoint hits, correct thread is selected in debug process view, and the debug controls are active.

        Attachments

        1. build.log
          1.38 MB
        2. console-log
          21 kB
        3. iosdebugger.log
          2 kB
        4. ios debug on device run 1.png
          ios debug on device run 1.png
          62 kB
        5. ios debug on device run 1 after manual process select.png
          ios debug on device run 1 after manual process select.png
          77 kB
        6. studio-log.txt
          73 kB

          Issue Links

            Activity

              People

              • Assignee:
                sgibly Shalom Gibly
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: