1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change value of a variable while debugging

Discussion in 'Support' started by incom2, Oct 28, 2015.

  1. incom2

    Joined:
    Oct 28, 2015
    Messages:
    2
    Likes Received:
    0
    Hi,

    I'm new in Take Command and just evaluating the IDE with some batch files I needed to maintain. The debugging option in the IDE is excellent, but I cannot find any way to change the value of a certain variable while debugging the execution.

    At first I tried to change the value in the watch window, but the value column is read only. The evaluate expression window also is not useful because the results on it, does'nt applies outside. And also, the code window becomes read only so I cannot change anything test different scenarios without stopping the execution, editing the code, saving changes and running all again.

    If there is any way and I missed it, please point me to it (and sorry!).
    If not, I think it would be great to have this feature in future versions.

    Thanks you!
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    You can change it in the "Environment" tab and pres the "Reset" toolbar button. Then it shows up as changed in the "Watch" tab.
     
    incom2 likes this.
  3. incom2

    Joined:
    Oct 28, 2015
    Messages:
    2
    Likes Received:
    0
    Thanks you very much! Just tried and working OK! :)

    Except with arguments like %1, %2, ..., %n: with those, the changes seems to apply (in the "modified" tab I can see them) but in the watch tab and while debugging they are not (maybe are read only?). Anyway it does'nt worries me because It's not usual needing to change those, so I'm telling it because I just found it.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,860
    Likes Received:
    83
    The batch variables (%0 - %n) are displayed in a combo box on the debugger toolbar. You can change them there.
     

Share This Page