A developer executes the following workflow in Debug mode with "Continue on Exception " enabled.

How many times will the workflow pause the execution?
Correct Answer: B
The workflow will pause the execution only once when it is executed in Debug mode with "Continue on Exception" enabled. Debug mode is a mode of execution that allows the developer to test and troubleshoot the workflow by using various debugging tools, such as breakpoints, step actions, and output messages4. "Continue on Exception" is a debugging option that enables the execution to continue even if an exception is encountered, without displaying the error message or stopping at the faulty activity5. In the workflow, there are two activities that can throw exceptions: the "Throw" activity, which throws a custom exception with the message "This is an exception", and the "Write Line" activity, which writes the value of the
"Var" variable to the Output panel. The "Var" variable is not initialized, so it has a null value by default.
When the "Write Line" activity tries to write the null value, it throws a NullReferenceException, as explained in the previous question. However, since the "Continue on Exception" option is enabled, the execution does not stop at the "Write Line" activity, but continues to the next activity, which is the "Throw" activity. The
"Throw" activity throws the custom exception, which is caught by the "Catch" section of the "Try Catch" activity. The "Catch" section contains a "Log Message" activity, which writes the exception message to the Output panel. The execution then moves to the "Finally" section, which contains a "Write Line" activity with the text "This is the end". The workflow then ends successfully. The only time the execution pauses is when it reaches the breakpoint that is set at the "Throw" activity. A breakpoint is a debugging tool that allows the developer to pause the execution at a specific activity and inspect the values of the variables and arguments, as well as the output messages6. The developer can then resume the execution by using the step actions or the continue button7. Therefore, the workflow will pause the execution only once at the breakpoint, and not at the exceptions, as they are ignored by the "Continue on Exception" option. References: Debugging a Workflow, Debugging Actions, Breakpoints, and Continue on Exception from UiPath documentation.