When developing a custom activity in Visual Studio you could previously attach the debugger to the UiPath Executor and use that to run through your code, hitting breakpoints etc.
It seems after an update of Studio I can no longer do this, I have 3 instances of the executor I could attach to and I believe the one I need to won’t let me since there is already a debugger attached.
Can anyone else confirm this behaviour before I register a bug with UiPath?
I also commented on this old topic related which also includes the ‘classic’ debugging steps but it didnt get any notice.
Hello @Jon_Smith,
I can deduce from your previous post that you want to attach the debugger by selecting the Executor Process manually. While it is not wrong and generally that is the correct approach, Studio uses more than one executor concurrently for different purposes.
It should be placed at the entry point of your activity (e.g. at the start of ExecuteAsync(), BeginExecute(), etc.) and place a breakpoint the following line of code. When this line of code is reached, you will be prompted to select a Debugger, select your instance of Visual Studio.
Do not forget to remove the line of code before publishing/ sharing the package with anyone else.
Also try running instead of debugging the process from Studio (“Run” \ “Run file”) when using this method.
This recommendation is for Runtime diagnostics. Hopefully this helps.