Debugging an Automation script
When you have finished configuring all necessary settings, you can start debugging.
In the DIS menu, go to DMA > Connect, and select the DataMiner Agent to which you want DIS to connect.
Import the Automation script. In the DIS menu, select DMA > Import Automation script, select an Automation script, and click Import.
In the XML editor, go to the Exe block that you want to debug, and click the Edit C# button in front of it to open the Exe block in a C# editor.
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 temporary 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 temporary 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 only works in conjunction with DataMiner Agents running at least DataMiner Main Release Version 10.1.0 or Feature Release Version 10.0.6.
- 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.