Thursday 9 April 2015

Debugging in Dynamics AX 2012

Scenario: 

Some times we are unable to find from where the error is raising.
Let suppose when you click one of the button on a Dynamics AX form, you are getting info log with error message. Now you have task to find the root cause of this error message.

Solution:
With Dynamics AX it is very simple to find out from where this error is originating.
Pre-requisite to start is, you should have access to the AOT and Dynamics AX Debugger is installed and configured.
Now,
Open AOT
Find Class called Info
Open 'Add' method in Info class
Set a breakpoint in 'Add' method
Now run the Form from where you are getting error
Click the button which gives the error
When the help of breakpoint set, while executing system will land you in dynamics AX debugger
With the help of Dynamics AX Debugger tools, you can find out the execution stack and point out the logic which is throwing error.

Original post here:http://niteshranjanax.blogspot.com.au/2014/01/how-to-start-debugging-in-dynamics-ax.html

No comments:

Post a Comment