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

Studio Debugger: changing variable value does not work in variables view.

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Debugging
    • Labels:
    • Environment:

      Description

      Issue description:
      As per the doc below I'm trying to change the variable value in debugger. But it's not working. Changing the variable value does not take effect.
      Reference: https://docs.appcelerator.com/platform/latest/#!/guide/Debugging_in_Studio-section-src-29004940_DebugginginStudio-Variablesview

      Steps to reproduce:
      1. Copy the sample code
      2. add breakpoint here: var x=10 and run the project in simulator
      3. when paused at breakpoint, change the value of the variable in the variables view and hit enter.
      Expected : variable value should change
      Actual: variable value does not change.

      Test Code:

      var win =Ti.UI.createWindow();
      var button = Ti.UI.createLabel({
        text: 'click',
        textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,
        top: 30,
        width: Ti.UI.SIZE, 
        height: Ti.UI.SIZE
      });
      button.addEventListener('click', function(){
      var x=10;
      x=x*10
      Ti.API.info(x);
      Ti.API.info("this is test");
      Ti.API.info("log");
      });
       
      win.add(button);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jnaher Jebun Naher
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: