Debugging an automation script
When you have finished configuring all necessary settings, you can start debugging.
Open the Visual Studio solution that contains the automation script you want to debug.
In the C# editor, set the necessary breakpoints.
In the DIS menu, select Tool Windows > DIS Inject to open the DIS Inject window.
Select the Automation script tab.
Open the large selection box at the top of the window, and select the automation script that you want to debug.
In the Exe blocks list:
Go to the row of which the Exe ID matches that of the Exe block you have opened.
If necessary, in the Project column, select another Exe block project.
In the script parameters list, assign a value to each of the script parameters in the list.
In the script dummies list, link a DataMiner element to each of the script dummies in the list.
Click the Attach button to build all Exe block projects and attach the Microsoft Visual Studio Debugger to the DataMiner SLAutomation process.
In the DIS Inject window, click Execute to manually trigger the automation script.
Note
Automation script debugging currently does not support memory files yet.
Tip
Debugging is often not possible for third-party libraries. dotPeek can serve as a handy tool to overcome this.