Command: Debug Script
Symbol: 
Function: The command executes the selected test script in debug mode. In the Test Progress dialog, you halt the execution, execute the test script step by step, and monitor the current variable values.
Call: Context menu of a test script in the Test Manager view, Test Scripts tab
Requirement: Exactly one test script is selected on the Test Scripts tab.
If test script editors with unsaved changes are open, then a prompt to save is displayed.
The test script starts immediately. Unlike with Execute Script, no Execute Test dialog is displayed.
The Test Progress dialog will open. Execution halts at active breakpoints which you have set in the test script editor.
After the test run, the test report will open.
Debugger is displayed as the tester in the test report. The test report is always verbose, which means it also contains the values of variable assignments.
Important
You cannot debug test scripts which are called remotely, for example in another instance of CODESYS.
For more information, see the following: Troubleshooting errors during the test run, Test Progress, Toggle Breakpoint, Command: Activate/deactivate breakpoint, Command: run script