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

Using Debugger breakpoint is not working on studio 5.1.0(alloy and classic)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.1.2
    • Component/s: Debugging
    • Labels:
      None
    • Environment:
    • Story Points:
      3
    • Sprint:
      2019 Sprint 4

      Description

      Tested the issue using breakpoints. Using Debugger, breakpoint is not working on studio 5.1.0.201808080937(alloy and classic).

      Test Envioroment:

       
      Axway Appcelerator Studio, build: 5.1.0.201808080937
      Appcelerator Command-Line Interface, version 7.0.4
      Operating System
        Name                        = Mac OS X
        Version                     = 10.13.6
        Architecture                = 64bit
        CPUs                      = 4
        Memory                      = 8589934592
      Node.js
        Node.js Version             = 8.9.1
        npm Version                 = 5.5.1
      Titanium CLI
        CLI Version                 = 5.1.1
      Titanium SDK
        SDK Version                 = 7.2.0.GA
      iOS SDK: 11.4, iOS Simulator: iPhone X
      

      Test code:
      //////////////////

      Alloy:
      ///////////

      index.js

      function doClick(e) {
      	alert($.label.text);// breakpoint is added  on this
      }
       
      $.index.open();
      

      index.xml

      <Alloy>
      	<Window class="container">
      		<Label id="label" onClick="doClick">Hello, World</Label>
      	</Window>
      </Alloy>
      
      

      Classic:

          var win = Ti.UI.createWindow({
              title: "Testing debug",
              backgroundColor: '#fff'
          });
          
          
          
          // Create a Label.
          var aLabel = Ti.UI.createLabel({
              text : 'test',
              color : 'red',
              font : {fontSize:20},
            
              textAlign : 'center'
          });
          
          // Add to the parent view.
          win.add(aLabel);
          
          
          aLabel.addEventListener("click",function(e){
          	Ti.API.info("Debugging started");
            	alert("Debugging started");// breakpoint is added on this line
          	
       
           
       });
          
       
          win.open();
      
      

      Test steps:

      1. Create a project(alloy and classic).
      2. There is a label on window and has an alert option upon clicking on it. Set a breakpoint on this alert.
      3. Debug it on a simulator and observe that alert is fired on clickevent.

      Test Output: Screen shots are attached above for alloy and classic project both.

      Expected output: Alert should not be fired as breakpoint is set on that.

        Attachments

        1. alloy.png
          alloy.png
          162 kB
        2. classic.png
          classic.png
          201 kB
        3. EmptyVariableValue.png
          EmptyVariableValue.png
          171 kB
        4. studio_5.1.0_diagnostic test.text
          602 kB
        5. studio_log_5.1.0.log
          2.84 MB
        6. Variables_ShowConstants.png
          Variables_ShowConstants.png
          330 kB

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                rmitro Rakhi Mitro
              • Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: