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

Notifications

Announcements

Community site session details

Community site session details

Session Id :

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

Chaitanya Golla Profile Picture Chaitanya Golla 17,225

Hi,

Filter feature of debugging helps us if we want to stop the execution at the breakpoint(such that we can start debugging) for a certain process (or) for a certain thread(in case of parallel threads) (or) code is executing on some certain machine.

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. 

4214.RunnableClass.jpg

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

2806.ConditionsOption.JPG

Step 3: On clicking conditions button, under conditions group, select Filter and specify value as ThreadName ="Worker Thread" (as shown below). Click on close button.

ConditonsOptions.JPG

Available Options:

FilterOptions.JPG

Step 4: After successfully providing the value, please check the plus sign on the breakpoint.

4810.Code.JPG

Step 5: Build the solution and start debugging(through Debug > Start debugging) to see the execution stops at the breakpoint. Process Name(green color box) and Thread Name(red color box) are available during debugging(as shown below).

7343.Debugging.JPG

Similarly based on available Filter Options, we can write conditions for breakpoint to hit. 

Regards,

Chaitanya Golla

Comments

*This post is locked for comments