Desktop User Guides > Professional > Using UNICOM Intelligence Professional > Debugging mrScriptBasic code > Stepping through the code
 
Stepping through the code
Stepping through code executes the code one line at a time, so that you can see the sequence of execution and the value of the variables at each step.
When stepping through a script reaches an Include file, the Include file is opened so that it can be stepped through as well.
1 To step through the code one line at a time, press F10 or click Debug > Single Step.
UNICOM Intelligence Professional executes the current line of code; moves to the next line; and then highlights it.
2 To execute the next line of code, press F10 again or click Debug > Single Step.
If you are stepping through an OnNextCase Event section (see OnNextCase Event section) in a DMS file, you step through each case, which could be a lengthy process if there are many cases.
See also
Debugging mrScriptBasic code