Hi,
Actions feature of debugging helps us if we want to view any value in the output window. By default continue execution option is marked to as yes. If it is unmarked then execution stops at the breakpoint and intended value is shown(in output window) only during that particular point.
Please follow below steps to make much usage of this feature and screenshots are provided for every step.
Step 1: Create a runnable class, I used following code which displays the names of customers(through while select loop) and also used a variable (namely) i which is incremented in the loop.
Step 2: Placed break point on the infolog statement(as shown below). Right click on breakpoint and select options Actions.
Step 3: On clicking Actions button, under Actions group, specify value as Value of i is {i} to capture value of i. Unmark the continue execution check box(as shown below).Click on close button.
Step 4: After successfully providing the value, please check the round sign on the breakpoint.
Step 5: Build the solution and start debugging(through Debug > Start debugging). Check the execution stops at the breakpoint.
Step 6: Click on stop button. Check the output window to see the value of i being displayed(black color box) only once.
Likewise, this feature and options can be used in many other ways. Hope this information helps you.
Regards,
Chaitanya Golla

Like
Report
*This post is locked for comments