Executing a VBS Script in Debug Mode
- Updated2024-09-12
- 1 minute(s) read
Working with DIAdem SCRIPT > Script Editor > Executing a VBS Script in Debug Mode
Executing a VBS Script in Debug Mode
Use the Microsoft Windows Script Debugger to work through VBS scripts step by step and to search for errors. To execute a script in the debug mode, complete the following steps:
- Select DIAdem SCRIPT.
- Select File»Open.
- Select a VBS script.
- Click Open.
- Select Script»Breakpoint On/Off to set the Breakpoints in the script editor, where you want the debugger to interrupt the script.
- Select Script»AUT/VBS Script Converter. The debugger executes the script and stops it at the first breakpoint or when the first error occurs. You also can execute the debugger if you click the Debug/Continue Script button or <F5>.
- If you click the Debug/Continue Script button on the toolbar, the debugger runs the script to the next breakpoint. If the debugger stops a script because an error occurs, you cannot continue the script.
- Repeat step 5 until you find the error.
- Click Abort Script Debugger on the toolbar to stop the debugger. When you debug a script, you also can use the Step Over, Step Into, and Step Out Of buttons.