Debugging a runnable class in Dynamics 365 for Operations - Through Actions feature
Hi,
Actions feature of debugging helps us if we want to view any value in the output window.
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(as shown below). Click on close button.
Step 4: After successfully providing the value, please check the round sign on the breakpoint changed to rhombus sign.
Step 5: Build the solution and start debugging(through Debug > Start debugging) and click on stop button. Check the output window to see the value of i being displayed(red color box) for every info message (as shown below).
Regards,
Chaitanya Golla

Like
Report
*This post is locked for comments