Hi,
Debugging in Dynamics 365 For Operations is similar to that of debugging in AX2012 as most of the shortcut keys remain the same as given below:
Shortcut Keys available for debugging:
List:
WALK THROUGH THE PROCESS OF DEBUGGING:
Step 1: To debug the code, I have written a simple runnable class to display the list of customers(through while select loop).
Step 2: Breakpoint on the required line (in the code editor) can be placed either
a. through right click > Breakpoint > Insert breakpoint
b. press shortcut key F9
c. click on the grey spot(available on left side)
Step 3: We need to build the solution to check code is error free and start debugging(through option Debug > Start Debugging) Note: No need to attach to process w3wp.exe to debug a runnable class.
Step 4: Upon starting debugging, required symbols get loaded and class runner window appears(as shown below).
Step 5: Once the breakpoint is hit, it is highlighted(in yellow color) and we can see the value of required variable either in the locals window (or) watch window.
Step 6: During debugging, infolog messages are available on the infolog window(Dynamics 365 > infolog)
Step 7: Either we can click on continue (or) stop debugging button to end debugging and allow the process to complete.
Output: In my case, it displayed names of the customers.
Regards,
Chaitanya Golla

Like
Report
*This post is locked for comments