The next tip I have to share is how you can easily debug your custom rules.
- Once you’ve compiled your rules into a library, *.dll, copy the dll into the path of Uipath Studio as indicated in the documentation. Usually this is program files (x86)/UiPath/Studio/Rules.
- Open UiPath Studio to a project you wish to analyze.
- Use the debug option in Visual Studio to attach to a process.
You should see a process called UiPath.Studio.Analyzer.exe. Select it and click the “Attach” button.
At this point you can set a break point in Visual Studio.
The rule I am debugging is at the project scope, so use the Analyze Project option in UiPath.
The debugger should halt on the break point, allowing your to examine the values of all local variables.