Quick note on debugging in AX 2012

Over time I have seen some people struggling in debugging their AX 2012 system. A common scenario is that they put a breakpoint on a certain method, but it did not hold while executing the logic. This post will aware people of the option to turn off CIL operations for debugging purposes.

In cases where you need to debug X++ code in Interpreted mode, you can turn off the parameter Execute business operations in CIL. You can find this option in the development workspace.

Tools > Options > Development > General > Execute business operations in CIL

Now even when the code is normally compiled to run as .NET Framework CIL, you can use the AX debugger. Very handy when you have to make multiple changes and you don’t want to rely on the CIL compilation first or debug using Microsoft Visual Studio debugger.

To find some more information and constraints on this topic visit this page: Debug in Interpreted Mode Your X++ Code that Runs as .NET CIL [AX 2012]



I do hope you liked this post and will add value for you in your daily work as a professional. If you have related questions or feedback, don’t hesitate to use the Comment feature below.


That’s all for now. Till next time!

 

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.