Debugging a report model
One challenge that comes along with the new reporting model is debugging. Different approaches for debugging issues must be taken based on the context. This is a short recipe that will tell you the configurations to debug the report model and the possible methods where the debugging points would be appropriate to start.
How to do it…
To debug framework-related classes the AX debugger can be used:
Under developer options, make sure the Execute business operations in CIL flag is unchecked to enable you to debug the code in X++ debugger.
The following methods are ideal to place your debugger to examine the execution:
Controller:
PrePromptModifyReport
,PreRunModifyReport
UI Builder:
build
Note
You must first open your debugger manually to use it. Then run your code.
Changes to model and adding new classes
This subsection is about refreshing the code when you make changes to the model or framework classes.
When changes are made to the query by adding ranges or fields, ensure...