Step Into (or Step by Step execution)
Using Step Into way of debugging, execution proceeds one statement at a time.
IMPORTANT LIMITS : As you step through the script code, the focus moves between the Editor window and the window of the application under automation. After executing each script line, WinTask debugger deactivates the application window and moves the focus to the Editor window. Before executing the next line, the debugger re-activates the application window. So for example, if the script right clicks a context menu, the activation of the Editor window will close the context menu and next step execution will fail.
USE STEP BY STEP EXECUTION ONLY FOR NON-INTERACTIVE STEPS.If the statement is a call to a Sub/Function, execution jumps to the first line to execute in this Sub/Function and stops there, ready to execute one statement at a time again in the Sub/Function.
Step into is the same as a Step by Step execution.
To start the Step by Step execution, press F11 when the Editor window has the focus, or select Debug/Step Into menu option, or click the Step Into icon
in the Debug toolbar (select View/Debug toolbar menu option to make the Debug toolbar displayed).
When one line is executed, the Editor window is minimized and the focus is back to the application under automation. When the line execution has finished, the Editor window is restored and a green arrow tells which line will be executed next. During execution, the minimized Editor window can disappear from the Windows taskbar and reappears as soon as it can be restored again.
Before pressing again F11 to execute the next statement in step by step mode, you can view the contents of variables using the Watch Variables window.
All the debug mode features are available when the Editor window is restored, so you can insert breakpoints, stop debug mode, step over, etc... You can too modify the code within the script and continue execution with the new code.
Note that if a line contains calls to several WinTask statements, you will need to press F11 several times to execute just one line.
See also