scripting try
Posted: 19 Sep 2008 21:47
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.
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
True, I hate this also. But one can always add ::step; in the first line and stepping starts.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.
or a checkbox inside try?admin wrote:Don't see a good way to handle this. Maybe always auto-enable step mode when going through try???
A way, but not a good one IMO.serendipity wrote:or a checkbox inside try?admin wrote:Don't see a good way to handle this. Maybe always auto-enable step mode when going through try???
After a weekend's meditation (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.
I like that solution.admin wrote:After a weekend's meditation (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.) 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.
Sure, already done!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.