QuestionQ95

Debugging

Given the following conditional breakpoint, with count = 0:

Question Image

Conditional breakpoint settings:

Question Image

How many times is UiPath shown in the Output panel before the process enters a Paused state in Debug mode?

Explanation

A breakpoint pauses execution before its activity runs. The condition count Mod 2 = 0 is satisfied for count values 0, 2, and 4 on its first three qualifying hits. With a hit count of 3, execution pauses at the Write Line activity when count = 4, before that activity executes. Thus, the Write Line activity has already run for count values 0, 1, 2, and 3, displaying UiPath four times.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!