web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Debugging a runnable class in Dynamics 365 for Operations - Through Actions feature

Chaitanya Golla Profile Picture Chaitanya Golla 17,225

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. 

1731.RunnableClass.JPG

Step 2: Placed break point on the infolog statement(as shown below). Right click on breakpoint and select options Actions.

Actions.JPG

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.

ActionOptions.JPG

Step 4: After successfully providing the value, please check the round sign on the breakpoint changed to rhombus sign.

RhombusSign.JPG

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).

0636.Debugging.JPG

Regards,

Chaitanya Golla

Comments

*This post is locked for comments