Page 1 of 1

scripting try

Posted: 19 Sep 2008 21:47
by graham
When testing a script in the try window it would be good to be able to select stepping from this window. It is easy to enter a script only to find stepping is not set.

Re: scripting try

Posted: 19 Sep 2008 21:54
by serendipity
graham wrote:When testing a script in the try window it would be good to be able to select stepping from this window. It is easy to enter a script only to find stepping is not set.
True, I hate this also. But one can always add ::step; in the first line and stepping starts.

Re: scripting try

Posted: 20 Sep 2008 09:40
by admin
Don't see a good way to handle this. Maybe always auto-enable step mode when going through try???

Re: scripting try

Posted: 20 Sep 2008 16:22
by serendipity
admin wrote:Don't see a good way to handle this. Maybe always auto-enable step mode when going through try???
or a checkbox inside try?

Re: scripting try

Posted: 20 Sep 2008 20:28
by admin
serendipity wrote:
admin wrote:Don't see a good way to handle this. Maybe always auto-enable step mode when going through try???
or a checkbox inside try?
A way, but not a good one IMO.

Re: scripting try

Posted: 20 Sep 2008 20:56
by Muroph
i prefer the checkbox.
you might want to paste or write a script in the try window and run it without stepping (i do it a lot).
besides, some scripts work when stepping is on, but not when it's off.

Re: scripting try

Posted: 20 Sep 2008 21:11
by jacky
Checkbox sounds good to me, too.

The important thing being : is it the same as menu Scripting|Step Through Scripts, both as in it is the actual option, or just works the same but doesn't affect the option; or does it only means step through this script (i.e. not others from sub/load) ?

Re: scripting try

Posted: 20 Sep 2008 21:45
by TheQwerty
I can understand Don's hesitation, it means customizing this dialog instead of using the generic multi-line input. Maybe the OK button could have a right click menu, and add the keyboard shortcuts Shift+Enter/Shift+Ctrl+Enter to do Run with Stepping.

This should keep the dialog from really needing to be customized into its own.

Re: scripting try

Posted: 21 Sep 2008 20:52
by admin
TheQwerty wrote:I can understand Don's hesitation, it means customizing this dialog instead of using the generic multi-line input. Maybe the OK button could have a right click menu, and add the keyboard shortcuts Shift+Enter/Shift+Ctrl+Enter to do Run with Stepping.

This should keep the dialog from really needing to be customized into its own.
After a weekend's meditation ( :wink: ) I think the best way is to always auto-enable step mode (if not enabled anyway) when running scripts from try window (and restore previous state when done). If you don't like stepping simply press Ctrl+Enter in the first step dialog and no more stepping.

Re: scripting try

Posted: 21 Sep 2008 20:56
by serendipity
admin wrote:
TheQwerty wrote:I can understand Don's hesitation, it means customizing this dialog instead of using the generic multi-line input. Maybe the OK button could have a right click menu, and add the keyboard shortcuts Shift+Enter/Shift+Ctrl+Enter to do Run with Stepping.

This should keep the dialog from really needing to be customized into its own.
After a weekend's meditation ( :wink: ) I think the best way is to always auto-enable step mode (if not enabled anyway) when running scripts from try window (and restore previous state when done). If you don't like stepping simply press Ctrl+Enter in the first step dialog and no more stepping.
I like that solution. :)

Re: scripting try

Posted: 21 Sep 2008 21:23
by graham
Yes, so do I very elegant. Could you also make it so that the toolbar button changes colour as a visual indicator that stepping is on.

Re: scripting try

Posted: 21 Sep 2008 21:23
by admin
graham wrote:Yes, so do I very elegant. Could you also make it so that the toolbar button changes colour as a visual indicator that stepping is on.
Sure, already done! 8)