Wednesday, 22 January 2014

How to start debugging in Dynamics AX

Scenario:
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.

Please verify