Studio executes NEXT activity after you press stop in a debugging session

During a debugging session, I have a breakpoint on a certain activity.

It stops on that breakpoint. So the last ran activity is the previous one. Until there, everything is ok.

Then I press the “Stop” button. The expected behaviour is that execution stops there, yet, instead, it immediately runs the activity Studio stopped on its breakpoint!



Hi, have you ever found out what was the cause? I am experiencing a similar issue. I stop the debugger at certain point, but the Studio still performs three following activities - IF, two assigns inside the IF and a DB Run command. I tried to rebuild a simplified version of the workflow and in there the issue was not present. This leads me to think that the issue is somehow connected to how to workflow was built or changed during development.

No idea, @Rollo_Tomasi. In the end, we had to get rid of our PowerShell activities because they broke the functionallity after an update. I’m sorry.

1 Like

Were you in a Try/Catch/FINALLY ?
We pulled the activity we wanted to stop on outside of the finally. That activity (log message) still completed, but then it stopped and ended execution. (see your orch trace logs)

1 Like

No, that’s not the case. I can’t think of a place in my workflow I’m using the Finally clause right now. But thanks for helping.

@pere thank you for the info.

@fred.bullmer thank you for the input and the idea to check the logs. I am actually in a Try/Catch. I start debugging and hit the breakpoint on the screenshot. Afterwards I hit Stop to terminate the debugger, but few activities (If, Log Message and Invoke Workflow) after the requested stop still perform (this can be seen in the logs in the folder, but not in the Output in the Studio - and I have all levels displayed). Also activities that are in the Finally block are performed (but this I could somehow understand). For me, this can be quite an issue, because if I use an SQL Update or Insert in the vicinity of the breakpoint where I want to terminate the debugger, they still get performed and alter the data even if they should not.