Page 2 of 2

Re: change variable with step

Posted: 23 Feb 2016 11:43
by PeterH
*wishing mode*

OK: in the end I think this confirmes that there is enough need for the original wish, also been wished by me long long ago:

Please allow us to change the value of variables in window "Variables in Stack",
(and maybe in window "Permanent Variables", too).

And another, rather related wish:
Please allow in Stepping Mode to select the next instruction to be executed.
(There could be checks for entering or leaving {...} constructs - or the user can be responsible :P )

I'm sure that both would make life better for "Scripters in Debugging Mode" :ugeek:

Re: change variable with step

Posted: 23 Feb 2016 13:05
by TheQwerty
Filehero wrote:Thanks, so I supposed right. I think, I would define a perm var switch for that.
The problem with a PV is you either name it specifically for each script or it becomes a global setting and now you're debugging all of your scripts instead of the one that has your focus.

Again, nothing I've said in this thread are things I actually recommend doing.
Please!

Re: change variable with step

Posted: 23 Feb 2016 13:30
by bdeshi
PeterH wrote:*wishing mode*
I'll throw my wish into the bag then
!

        PeterH wrote: "Please allow in Stepping Mode to select the next instruction to be executed.
        (There could be checks for entering or leaving {...} constructs - or the user can be responsible :P )"

I further wish step mode had a Continue after Loop button, for jumping to the stmt after a while/foreach, then resume stepping -- Not an infinite or otherwise broken loop, just one that takes a "while" to step through (after having inspected the first few loops to make sure it's working correctly).
PeterH wrote:Please allow us to change the value of variables in window "Variables in Stack",
(and maybe in window "Permanent Variables", too).
That second line is a perfectly legitimate wish! :tup: :tup:

Re: change variable with step

Posted: 23 Feb 2016 14:57
by PeterH
Sammay, for your 1st wish:
- place a Step; behind the loop
- then select Continue without Stepping while inside loop
does what you want?

To the setting of variables:
you can set a perm var by entering "::perm $name newvalue;" - so this seams not so difficult.
But, for me, the main thing would be the ability to change *any* var while stepping.
(Maybe Don somewhen said "later" to this? I'm not sure :whistle: )

Re: change variable with step

Posted: 23 Feb 2016 16:02
by bdeshi
PeterH wrote:you can set a perm var by entering "::perm $name newvalue;" - so this seams not so difficult.
I know, but XY exists to make work easier. 8) And an editable permanent variables list is very logical. (I think if Don allows this, then the original wish her will also come true...)
Sammay, for your 1st wish:
- place a Step; behind the loop
- then select Continue without Stepping while inside loop
does what you want?
Again, make things easier. 8)

Re: change variable with step

Posted: 24 Feb 2016 06:21
by Filehero
TheQwerty wrote:Again, nothing I've said in this thread are things I actually recommend doing.
Please!
No worries, I got your "message" right in the first place. :wink:
TheQwerty wrote:..and now you're debugging all of your scripts instead of the one that has your focus.!
This usually fits my workflow, but I do see the point.

Re: change variable with step

Posted: 24 Feb 2016 12:29
by fogg
Thanks you all for suggestions. But it is annoying and i Still wish this works!
PeterH wrote: I'm sure that both would make life better for "Scripters in Debugging Mode" :ugeek:
Its my opinion also. :D

Re: change variable with step

Posted: 24 Feb 2016 13:06
by admin
SammaySarkar wrote:... an editable permanent variables list is very logical...
Coming...

Re: change variable with step

Posted: 24 Feb 2016 16:31
by Papoulka
Bumping some other Try Script / debugger wishes, since that's being revised:
http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=14579
http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=14277

Re: change variable with step

Posted: 24 Feb 2016 17:07
by PeterH
Papoulka wrote:Bumping some other Try Script / debugger wishes, since that's being revised:
http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=14579
http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=14277
Whereever there are such wishes, PeterH isn't far :maf:

And, just seen: "BTW, it's not possible to edit variable values from the variable list in the Step Dialog. You better totally forget about that." :o :cry: :cry: